You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: extending-the-rest-api/schema.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -789,12 +789,12 @@ The regex is not automatically anchored. Regex flags, for instance `/i` to make
789
789
The JSON Schema RFC recommends limiting yourself to the following regex features so the schema can be interoperable between as many different programming languages as possible.
790
790
791
791
- individual Unicode characters, as defined by the JSON specification [RFC4627].
792
-
- simple character classes ([abc]), range character classes ([a-z]).
793
-
- complemented character classes ([^abc], [^a-z]).
794
-
- simple quantifiers: "+" (one or more), "*" (zero or more), "?" (zero or one), and their lazy versions ("+?", "*?", "??").
795
-
- range quantifiers: "{x}" (exactly x occurrences), "{x,y}" (at least x, at most y, occurrences), {x,} (x occurrences or more), and their lazy versions.
796
-
- the beginning-of-input ("^") and end-of-input ("$") anchors.
797
-
- simple grouping ("(...)") and alternation ("|").
792
+
- simple character classes `[abc]`, range character classes `[a-z]`.
793
+
- complemented character classes `[^abc]`, `[^a-z]`.
794
+
- simple quantifiers: `+` (one or more), `*` (zero or more), `?` (zero or one), and their lazy versions `+?`, `*?`, `??`.
795
+
- range quantifiers: `{x}` (exactly x occurrences), `{x,y}` (at least x, at most y, occurrences), `{x,}` (x occurrences or more), and their lazy versions.
796
+
- the beginning-of-input `^` and end-of-input `$` anchors.
797
+
- simple grouping `(...)` and alternation `|`.
798
798
799
799
The pattern should be valid according to the ECMA 262 regex dialect.
0 commit comments