Skip to content

Commit 266aaab

Browse files
committed
update nested arrays lesson
1 parent 92c2143 commit 266aaab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LearnJsonEverything/wwwroot/data/lessons/schema.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,13 +216,13 @@
216216
Adding a keyword is accomplished by calling the same-name (usually) extension method.
217217
218218
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.
220220
221221
To help make your code prettier, there is an implicit cast from `JsonSchemaBuilder` to `JsonSchema`
222222
that automatically calls the `.Build()` method so you don't have to.
223223
docs: 'schema/basics/#schema-inlining'
224224
api: api/JsonSchema.Net/JsonSchemaBuilderExtensions
225-
title: 'Schema Builder: Homogenous arrays'
225+
title: 'Schema Builder: Nesting schemas'
226226
instructions: |
227227
Configure the provided `JsonSchemaBuilder` to produce a schema that validates a array instance
228228
filled with integers. Ensure that the array has no more than 5 items.

0 commit comments

Comments
 (0)