Skip to content

Commit 55e7afb

Browse files
fixed some typos in the tour website (#162)
1 parent 15d72f5 commit 55e7afb

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

content/02-Primitive-Types/09-Combining-Types/instructions.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ keywords: "types, combining types, boolean, null, JSON Schema"
66

77
# Combining Types - Boolean and Null
88

9-
In out previous examples, we have set the types of properties as `string` and `integer`. But **what if you want to combine different types for a single property?**
9+
In our previous examples, we have set the types of properties as `string` and `integer`. But **what if you want to combine different types for a single property?**
1010

1111
Let's add a new property `hasAgreedToTerms` to the JSON object. This property should be a `boolean` value, but it can also be `null`.
1212

@@ -51,4 +51,4 @@ In JSON Schema, you can define multiple types by passing **an array of types** t
5151

5252

5353

54-
Now, try to modify the `hasAgreedToTerms` property on the <SideEditorLink/> to accept both `boolean` and `null` values.
54+
Now, try to modify the `hasAgreedToTerms` property on the <SideEditorLink/> to accept both `boolean` and `null` values.

content/03-Objects/04-Applying-Schema-to-Property-Names/instructions.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ We want to ensure that each property names are written in capital letters. We ca
2424
}
2525
```
2626

27-
You are given an empty object schema in the <SideEditorLink/>. Modify it ensure that it follows the below constraints:
27+
You are given an empty object schema in the <SideEditorLink/>. Modify it to ensure that it follows the below constraints:
2828

2929
1. The object should have at **least 2 properties**.
3030
2. The **property names** should be written **in capital letters**, and should have **minimum length of 3 characters**.
@@ -33,4 +33,4 @@ You are given an empty object schema in the <SideEditorLink/>. Modify it ensure
3333
> **Hints:**
3434
> - For the first constraint, you can use the `minProperties` keyword.
3535
> - For the second constraint, you can use the `propertyNames` keyword with the `pattern` keyword.
36-
> - For the third constraint, you can use the `additionalProperties` keyword with the `type` keyword.
36+
> - For the third constraint, you can use the `additionalProperties` keyword with the `type` keyword.

content/04-Arrays/03-Tuple-Validation/instructions.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ We want to display the address of a person. The address is represented as an arr
1818
}
1919
```
2020

21-
each element of the `address` array have constraints of their own:
21+
each element of the `address` array has constraints of its own:
2222

2323
- `number` should be an integer
2424
- `street_name` should be a string

content/04-Arrays/06-Ensuring-Array-Content-With-Contains/instructions.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: Ensuring Array Content with the 'contains'
2+
title: Ensuring Array Content with the 'contains' keyword
33
description: "Learn how to use the 'contains' keyword in JSON Schema to validate arrays, ensuring they contain specific elements like numbers or strings, with examples and tasks."
44
keywords: "array, contains, validation, JSON Schema, subschema, keyword, example, task, skills, const"
55
---
66

7-
# Ensuring Array Content with the 'contains'
7+
# Ensuring Array Content with the 'contains' keyword
88

99
The `contains` keyword is used to ensure that an array contains **at least one element** that matches the [subschema](https://json-schema.org/learn/glossary#subschema) defined in the `contains` [keyword](https://json-schema.org/learn/glossary#keyword).
1010

@@ -35,4 +35,4 @@ Our employee document has a field called `skills`.
3535

3636
Now, we want to ensure that the `skills` array contains at least one element that is equal to `"JavaScript"`. modify the schema given to you in the <SideEditorLink/> to apply this constrain.
3737

38-
> **Hint:** Use the `const` keyword to specify JavaScript as the required element.
38+
> **Hint:** Use the `const` keyword to specify JavaScript as the required element.

content/04-Arrays/07-minContains-and-maxContains/instructions.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ The following example demonstrates how to use the `minContains` and `maxContains
4040
}
4141
```
4242

43-
Our employee has field called worked hours. We want to ensure that the `workedHours` array contains **at least 2 elements** that are **greater than or equal to 8 and less than or equal 12**. Modify the schema given to you in the <SideEditorLink/> to apply this constraint.
43+
Our employee has a field called worked hours. We want to ensure that the `workedHours` array contains **at least 2 elements** that are **greater than or equal to 8 and less than or equal 12**. Modify the schema given to you in the <SideEditorLink/> to apply this constraint.
4444

4545

content/05-Conditional-Validation/01-Ensuring-Conditional-Property-Presence/instructions.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ keywords: "dependentRequired, conditional validation, JSON Schema, dependentSche
66

77

88
# Conditional Validation
9-
Congratulations! You have made so far. We will learn about conditional validation in module
9+
Congratulations! You have made it so far. We will learn about conditional validation in this module
1010

1111

1212
## What is Conditional Validation?
@@ -65,4 +65,4 @@ The value of the `dependentRequired` keyword is an object. Each entry in the obj
6565
}
6666
```
6767

68-
You are given a *Schema* for the above JSON document in the <SideEditorLink/>. Update the schema to make sure that if the `creditCardNumber` property is present, then the `address` property must also be present.
68+
You are given a *Schema* for the above JSON document in the <SideEditorLink/>. Update the schema to make sure that if the `creditCardNumber` property is present, then the `address` property must also be present.

0 commit comments

Comments
 (0)