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: docs/options.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -185,25 +185,25 @@ Option values:
185
185
-`true` (default) - use unicode flag "u".
186
186
-`false` - do not use flag "u".
187
187
188
-
### timestamp <Badgetext="JTD only">
188
+
### timestamp <Badgetext="JTD only" />
189
189
190
190
Defines which Javascript types will be accepted for the [JTD timestamp type](./json-type-definition#type-form).
191
191
192
192
By default Ajv will accept both Date objects and [RFC3339](https://datatracker.ietf.org/doc/rfc3339/) strings. You can specify allowed values with the option `timestamp: "date"` or `timestamp: "string"`.
193
193
194
-
### parseDate <Badgetext="JTD only">
194
+
### parseDate <Badgetext="JTD only" />
195
195
196
196
Defines how date-time strings are parsed by [JTD parsers](./api.md#jtd-parse). By default Ajv parses date-time strings as string. Use `parseDate: true` to parse them as Date objects.
197
197
198
-
### allowDate <Badgetext="JTD only">
198
+
### allowDate <Badgetext="JTD only" />
199
199
200
200
Defines how date-time strings are parsed and validated. By default Ajv only allows full date-time strings, as required by JTD specification. Use `allowDate: true` to allow date strings both for validation and for parsing.
201
201
202
202
::: warning Option allowDate is not portable
203
203
This option makes JTD validation and parsing more permissive and non-standard. The date strings without time part will be accepted by Ajv, but will be rejected by other JTD validators.
204
204
:::
205
205
206
-
### int32range <Badgetext="JTD only">
206
+
### int32range <Badgetext="JTD only" />
207
207
208
208
Can be used to disable range checking for `int32` and `uint32` types.
0 commit comments