Skip to content

Commit 45a8411

Browse files
authored
Merge pull request #10 from json-structure:clemensv/issue9
Lift character set restriction on map keys
2 parents 034f99d + bf4e6e8 commit 45a8411

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

draft-vasters-json-structure-core.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ Example:
591591
The `map` type is used to define dynamic key–value pairs. It's represented as a
592592
JSON object where the keys are strings and the values are of a specific type.
593593

594-
All keys in a `map` MUST conform to the identifier rules ({{identifier-rules}}).
594+
Map keys MAY be any valid JSON string.
595595

596596
The `values` attribute of a `map` MUST reference a reusable type or a primitive
597597
type or a locally declared compound type.
@@ -1171,8 +1171,6 @@ All property names and type names MUST conform to the regular expression
11711171
contain letters, digits, and underscores. Keys and type names are
11721172
case-sensitive.
11731173

1174-
`map` keys MAY additionally contain the characters `.` and `-` and MAY begin
1175-
with a digit.
11761174

11771175
If names need to contain characters outside of this range, consider using the
11781176
{{JSTRUCT-ALTNAMES}} extension specification to define those.

0 commit comments

Comments
 (0)