Skip to content

Commit 4de3c7b

Browse files
committed
docs: JSON syntax highlight
1 parent 4fa0beb commit 4de3c7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ If the option were `"failing"` then property `additional1` would have been remov
602602

603603
__Please note__: If you use `removeAdditional` option with `additionalProperties` keyword inside `anyOf`/`oneOf` keywords your validation can fail with this schema, for example:
604604

605-
```JSON
605+
```json
606606
{
607607
"type": "object",
608608
"oneOf": [
@@ -630,7 +630,7 @@ With the option `removeAdditional: true` the validation will pass for the object
630630

631631
While this behaviour is unexpected (issues [#129](https://github.com/epoberezkin/ajv/issues/129), [#134](https://github.com/epoberezkin/ajv/issues/134)), it is correct. To have the expected behaviour (both objects are allowed and additional properties are removed) the schema has to be refactored in this way:
632632

633-
```JSON
633+
```json
634634
{
635635
"type": "object",
636636
"properties": {

0 commit comments

Comments
 (0)