Skip to content

Commit

Permalink
docs: make first lesson more easy
Browse files Browse the repository at this point in the history
There was no improvement in the churn rate

related to #72
  • Loading branch information
JeelRajodiya committed Sep 6, 2024
1 parent e42f388 commit 7fb3beb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 4 additions & 0 deletions content/01-Getting-Started/01-Your-First-Schema/code.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@

const code: any = {
type: "object",
properties: {
name: {
type: "string",
},
age: {
type: "number",
},
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,5 @@ Consider you have a JSON document of an employee:
- `name` with value `John Doe` (string)
- `age` with value `25` (integer)

**Task:** You are given an incomplete *schema* for above JSON data on the <SideEditorLink/>, now:
**Task:** You are given an incorrect *schema* for above JSON data on the <SideEditorLink/>. Change the `type` of `age` property to from `number` to `integer` and validate the JSON data.

- Add a new property called `age` under the `properties` section.
- Define the `age` property as follows:
- Set the `type` [keyword](https://json-schema.org/learn/glossary#keyword) for `age` to `integer`.

0 comments on commit 7fb3beb

Please sign in to comment.