Skip to content

Commit

Permalink
Fix typo in update instructions.mdx (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
hey-august authored Dec 8, 2024
1 parent a9567ac commit 8f952db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/03-Objects/02-Additional-Properties/instructions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ keywords: additional properties, object, JSON Schema, properties, type, properti

In the previous lesson, we have set `additionalProperties` to `false`. What does it mean?

So far, we have seen how to define the properties of an object in a [schema](https://json-schema.org/learn/glossary#schema). But **what if you want to specify constrains for the properties which you have not defined in the schema?**
So far, we have seen how to define the properties of an object in a [schema](https://json-schema.org/learn/glossary#schema). But **what if you want to specify constraints for the properties which you have not defined in the schema?**

The `additionalProperties` [keyword](https://json-schema.org/learn/glossary#keyword) is used to control the handling of extra stuff, that is, properties whose names are not listed in the `properties` keyword or match any of the regular expressions in the `patternProperties` keyword.

Expand Down Expand Up @@ -50,4 +50,4 @@ You can also set `additionalProperties` to a schema to define the schema for the

The above schema will allow only `name` and `age` properties in the object. If any other property is present in the object, it should be of type `string`.

Now, try to modify the schema provided in the <SideEditorLink/> on the right to allow any additional properties of type `integer`.
Now, try to modify the schema provided in the <SideEditorLink/> on the right to allow any additional properties of type `integer`.

0 comments on commit 8f952db

Please sign in to comment.