Skip to content

Commit 09c6d3c

Browse files
authored
Update type.md
1 parent a76a974 commit 09c6d3c

File tree

1 file changed

+2
-2
lines changed
  • pages/understanding-json-schema/reference

1 file changed

+2
-2
lines changed

pages/understanding-json-schema/reference/type.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ The `type` keyword can take two forms:
129129

130130
1. **A single string**. When it is a single string, it must be one of the types mentioned above (`array`, `boolean`, `integer`, `number`, `null`, `object`, `regular expressions`, or `string`). This specifies that the instance data is only valid when it matches that specific type.
131131

132-
Here is an example of using the `string` keyword as a single string:
132+
Here is an example of using the `number` keyword as a single number:
133133

134134
```json
135135
// props { "isSchema": true }
@@ -251,4 +251,4 @@ Dates and times are represented in [RFC 3339, section 5.6](https://tools.ietf.or
251251

252252
#### Regular Expressions
253253

254-
- `"regex"`: <StarInline label="New in draft 7" /> A regular expression that should be valid according to the [ECMA 262](https://www.ecma-international.org/publications-and-standards/standards/ecma-262/) [dialect](../../learn/glossary#dialect). Be careful, in practice, JSON Schema validators are only required to accept the safe subset of [regular expressions](../../understanding-json-schema/reference/regular_expressions) described elsewhere in this document.
254+
- `"regex"`: <StarInline label="New in draft 7" /> A regular expression that should be valid according to the [ECMA 262](https://www.ecma-international.org/publications-and-standards/standards/ecma-262/) [dialect](../../learn/glossary#dialect). Be careful, in practice, JSON Schema validators are only required to accept the safe subset of [regular expressions](../../understanding-json-schema/reference/regular_expressions) described elsewhere in this document.

0 commit comments

Comments
 (0)