Skip to content

Commit f2e590a

Browse files
authoredJan 15, 2022
Fix broken named anchor link (#1870)
Prefix the closing angle bracket with a forward slash so that a correct stub is generated for table of contents.
1 parent d632539 commit f2e590a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎docs/options.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -185,25 +185,25 @@ Option values:
185185
- `true` (default) - use unicode flag "u".
186186
- `false` - do not use flag "u".
187187

188-
### timestamp <Badge text="JTD only">
188+
### timestamp <Badge text="JTD only" />
189189

190190
Defines which Javascript types will be accepted for the [JTD timestamp type](./json-type-definition#type-form).
191191

192192
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"`.
193193

194-
### parseDate <Badge text="JTD only">
194+
### parseDate <Badge text="JTD only" />
195195

196196
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.
197197

198-
### allowDate <Badge text="JTD only">
198+
### allowDate <Badge text="JTD only" />
199199

200200
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.
201201

202202
::: warning Option allowDate is not portable
203203
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.
204204
:::
205205

206-
### int32range <Badge text="JTD only">
206+
### int32range <Badge text="JTD only" />
207207

208208
Can be used to disable range checking for `int32` and `uint32` types.
209209

0 commit comments

Comments
 (0)
Please sign in to comment.