File tree 1 file changed +2
-2
lines changed
LearnJsonEverything/wwwroot/data/lessons
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 216
216
Adding a keyword is accomplished by calling the same-name (usually) extension method.
217
217
218
218
Some keywords take schemas. To do this with _JsonSchema.Net_, you'll want to pass a nested
219
- `JsonSchemaBuilder`.
219
+ `JsonSchemaBuilder` into the `.Items()` extension method .
220
220
221
221
To help make your code prettier, there is an implicit cast from `JsonSchemaBuilder` to `JsonSchema`
222
222
that automatically calls the `.Build()` method so you don't have to.
223
223
docs : ' schema/basics/#schema-inlining'
224
224
api : api/JsonSchema.Net/JsonSchemaBuilderExtensions
225
- title : ' Schema Builder: Homogenous arrays '
225
+ title : ' Schema Builder: Nesting schemas '
226
226
instructions : |
227
227
Configure the provided `JsonSchemaBuilder` to produce a schema that validates a array instance
228
228
filled with integers. Ensure that the array has no more than 5 items.
You can’t perform that action at this time.
0 commit comments