Skip to content

Commit

Permalink
docs(refactor): update the description and keywords of each chapter f…
Browse files Browse the repository at this point in the history
…or SEO improvements

Squashed commit of the following:

commit d3c392a
Author: JeelRajodiya <[email protected]>
Date:   Wed Mar 5 01:56:25 2025 +0530

    update meta data in Chapter 8

commit bf7c516
Author: JeelRajodiya <[email protected]>
Date:   Wed Mar 5 01:54:58 2025 +0530

    update meta data in Chapter 7

commit a71b9d8
Author: JeelRajodiya <[email protected]>
Date:   Wed Mar 5 01:54:15 2025 +0530

    update meta data in Chapter 6

commit 63f75e1
Author: JeelRajodiya <[email protected]>
Date:   Wed Mar 5 01:50:56 2025 +0530

    update meta data in Chapter 5

commit 9ee9e23
Author: JeelRajodiya <[email protected]>
Date:   Wed Mar 5 01:45:59 2025 +0530

    update meta data in Chapter 4

commit cda4240
Author: JeelRajodiya <[email protected]>
Date:   Wed Mar 5 01:39:15 2025 +0530

    update meta data in Chapter 3

commit 1d1ec2f
Author: JeelRajodiya <[email protected]>
Date:   Wed Mar 5 01:36:38 2025 +0530

    update meta data of Chapter 2

commit f838043
Author: JeelRajodiya <[email protected]>
Date:   Wed Mar 5 01:26:14 2025 +0530

    Update the meta data of Chapter 1
  • Loading branch information
JeelRajodiya committed Mar 4, 2025
1 parent 6a3251a commit b16f22e
Show file tree
Hide file tree
Showing 43 changed files with 88 additions and 92 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Your First Schema
description: Welcome to the JSON Schema Tour! Create your first schema to validate a JSON document.
keywords: type, properties, integer, string
description: "JSON Schema is a language used for defining the structure and constraints of a JSON document. A JSON Schema is a JSON document that you can use to validate or document another JSON, which we call a JSON instance. JSON Schema is particularly useful in scenarios where data needs to be validated against a predefined structure. This ensures data consistency and helps prevent errors in applications that consume or produce JSON data. It's also valuable for documenting the expected format of JSON data, making it easier for developers to understand and work with APIs and data structures. JSON Schema supports a wide range of validation rules, including data types, formats, ranges, and dependencies between properties."
keywords: "type, properties, integer, string, validation, structure, constraints"
---


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Nesting Objects"
description: "Nest objects within objects to define complex JSON structures."
keywords: "nesting, string, properties, type, object, subschema"
description: "Learn how to nest objects within objects using JSON Schema. This lesson covers defining object schemas with properties, creating subschemas, and adding string and integer types for complex data structures."
keywords: "nesting, string, properties, type, object, subschema, schema, JSON Schema, complex data structures"
---

# Nesting Objects
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Required Properties"
description: "Define required properties in JSON Schema"
keywords: "required, properties, object, type, string"
description: "Learn how to define required properties in JSON Schema. This lesson covers using the required keyword to make properties mandatory in object schemas, ensuring data validity."
keywords: "required, properties, object, type, string, JSON Schema, mandatory, data validity"
---

# Required Properties
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Enumerated Values"
description: "Define enumerated values in JSON Schema"
keywords: "Enums, string, properties, type, object"
description: "Learn how to constrain a property to a fixed set of values using enumerated values in JSON Schema, with examples."
keywords: "Enums, string, properties, type, object, JSON Schema"
---


Expand Down
4 changes: 2 additions & 2 deletions content/01-Getting-Started/05-Arrays/instructions.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Arrays"
description: "Define arrays in JSON Schema"
keywords: "array"
description: "Learn how to define arrays in JSON Schema using the type and items keywords, and convert properties to arrays of strings."
keywords: ["array", "JSON Schema", "type", "items", "subschema", "strings"]
---

# Arrays
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Array of Objects"
description: "Define an array of objects with enumerated properties"
keywords: "items, array, object, properties, type, properties, enum"
description: "Learn how to define an array of objects with properties name and level, and how to set the items keyword in JSON schema."
keywords: "array, objects, properties, name, level, items, JSON schema"
---

# Array of Objects
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Constraining String Length
description: Learn how to constrain the length of a string in JSON Schema.
keywords: minLength, maxLength, string, JSON Schema
description: "Learn how to use JSON Schema to constrain string length using minLength and maxLength keywords, with examples for postalCode and phoneNumber fields."
keywords: "minLength, maxLength, string, JSON Schema, postalCode, phoneNumber"


---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Regular Expressions in Strings
description: Learn how to use regular expressions in JSON Schema to validate strings.
keywords: regular expressions, regex, pattern, string, validation, JSON Schema
description: "Learn how to use regular expressions in JSON Schema to validate string fields like postalCode, phoneNumber, and countryCode with specific patterns."
keywords: "regular expressions, regex, pattern, string, validation, JSON Schema, postalCode, phoneNumber, countryCode"
---

# Regular Expressions in Strings
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Constraining Number"
description: "Constraints on number values, minimum, maximum and range"
keywords: "minimum, maximum, range"
description: "Learn how to constrain number values using minimum, maximum, and range constraints in JSON schema, with examples for age and dateOfBirth properties."
keywords: "minimum, maximum, range, JSON schema, age, dateOfBirth"
---

# Constraining Number
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Exclusively Constraining Number"
description: "Constraints on number values, exclusiveMinimum, exclusiveMaximum and range"
keywords: "exclusiveMinimum, exclusiveMaximum, range"
description: "Learn to define exclusive constraints on number values using exclusiveMinimum and exclusiveMaximum keywords in JSON Schema, with examples for age and salary properties."
keywords: "exclusiveMinimum, exclusiveMaximum, range, JSON Schema, age, salary"
---

# Exclusively Constraining Number
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Multiple of a Number
description: Define a number which is a multiple of another number in JSON Schema.
keywords: integer, JSON Schema, multiple, multipleOf
description: "Learn how to define a numeric property in JSON Schema that is a multiple of another number using the multipleOf keyword, with constraints on minimum and maximum values."
keywords: "integer, JSON Schema, multiple, multipleOf, minimum, maximum"
---

# Multiple of a Number
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Decimal Numbers
description: Define decimal numbers and integers in JSON Schema.
keywords: integer, number, JSON Schema
description: "Learn how to define decimal numbers and integers in JSON Schema, including setting minimum and maximum values."
keywords: "integer, number, JSON Schema, decimal, minimum, maximum"
---

# Decimal Numbers
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Enumerated Values II
description: Define numbers and null values as enumerated values in JSON Schema.
keywords: integer, JSON Schema, enums, enumerated values, null
description: "Define enumerated values for integers, numbers, and null using the JSON Schema enum keyword while restricting performanceRating to only specific values."
keywords: "integer, JSON Schema, enums, enumerated values, null, performanceRating"
---

# Enumerated Values II
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Defining Constant Values
description: Learn to Define constant values in JSON Schema.
keywords: const, constant, JSON Schema
description: "Learn to define constant values for properties using the const keyword in JSON Schema, including examples and practice."
keywords: "const, constant, JSON Schema, property, example, practice"
---

# Constant Values
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Combining Types - Boolean and Null"
description: "Learn to combine different types of properties in a single property."
keywords: "types, combining types, object schema, JSON Schema"
description: "Learn to combine boolean and null types in a single property using JSON Schema."
keywords: "types, combining types, boolean, null, JSON Schema"
---

# Combining Types - Boolean and Null
Expand Down
4 changes: 2 additions & 2 deletions content/03-Objects/01-Pattern-Properties/instructions.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Pattern Properties
description: Define patterns for object properties in JSON Schema.
keywords: pattern properties, object, JSON Schema, properties, type, properties, required, properties, object
description: "Learn how to use patternProperties in JSON Schema to define patterns for object property names and constrain their values using regular expressions."
keywords: "pattern properties, object, JSON Schema, properties, type, required, regular expressions, pattern, additionalProperties"
---


Expand Down
5 changes: 2 additions & 3 deletions content/03-Objects/02-Additional-Properties/instructions.mdx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
title: Additional Properties
description: Handle additional properties of an object in JSON Schema.
keywords: additional properties, object, JSON Schema, properties, type, properties, required, properties, object
description: "Learn how to handle additional properties in JSON Schema using the additionalProperties keyword, including disallowing extra properties and defining schemas for them."
keywords: "additional properties, object, JSON Schema, properties, type, required, patternProperties, schema, keyword"
---


# Additional Properties

In the previous lesson, we have set `additionalProperties` to `false`. What does it mean?
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
title: Constraining Number of Properties
description: Learn how to set the minimum and maximum number of properties in an object in JSON Schema.
keywords: minProperties, maxProperties, object, JSON Schema, properties, type, properties, required, properties, object
description: "Learn how to use JSON Schema keywords minProperties, maxProperties, and additionalProperties to set constraints on the number and type of properties in an object."
keywords: "minProperties, maxProperties, additionalProperties, JSON Schema, object, properties, type, schema"
---


# Constraining Number of Properties

In JSON Schema, you can set constraints on the number of properties an object can have using the `minProperties` and `maxProperties` [keywords](https://json-schema.org/learn/glossary#keyword).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Applying Schema to Property Names
description: Learn how to apply schema to property names in JSON Schema.
keywords: propertyNames, minProperties, maxProperties
description: "Learn how to use the propertyNames keyword in JSON Schema to enforce constraints on property names, including patterns, minimum length, and property values."
keywords: "propertyNames, minProperties, maxProperties, pattern, additionalProperties, JSON Schema"
---


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Specifying Length of an Array
description: Learn to constrain the number of items in an array using JSON Schema.
keywords: minItems, maxItems, items, validation, JSON, Schema, JSON Schema
description: "Learn to use JSON Schema to validate arrays, specify minimum and maximum number of items, and constrain item formats using regular expressions."
keywords: "minItems, maxItems, items, validation, JSON, Schema, JSON Schema, pattern, regular expression"
---


Expand Down
4 changes: 2 additions & 2 deletions content/04-Arrays/02-Unique-Items/instructions.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Unique Array Items
description: Validate arrays with unique items using JSON Schema.
keywords: array, unique items, JSON Schema
description: "Learn how to validate arrays with unique items using the uniqueItems keyword in JSON Schema."
keywords: "array, unique items, JSON Schema, uniqueItems, validate"
---


Expand Down
4 changes: 2 additions & 2 deletions content/04-Arrays/03-Tuple-Validation/instructions.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Tuple Validation
description: Learn to validate tuple arrays in JSON Schema.
keywords: tuple, array, items, validation, JSON, Schema, JSON Schema
description: "Learn how to validate tuple arrays in JSON Schema using the prefixItems keyword to define constraints for each element."
keywords: "tuple, array, items, validation, JSON Schema, prefixItems, constraints"
---


Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
title: Additional Items in Tuples
description: Constrain additional items in a tuple array using JSON Schema.
keywords: tuple, array, items, validation, JSON, Schema, JSON Schema
description: "Learn how to use the items keyword in JSON Schema to constrain additional items in tuple arrays, with examples and subschema definitions."
keywords: "tuple, array, items, validation, JSON, Schema, JSON Schema, subschema"
---


# Additional Items in Tuples

There is no new [keyword](https://json-schema.org/learn/glossary#keyword) for the additional items in tuple arrays. You can use the `items` keyword to define the schema for the additional items in a tuple array.
Expand Down
4 changes: 2 additions & 2 deletions content/04-Arrays/05-Enumerated-Array-Items/instructions.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Enumerated Array Items
description: Learn to restrict array items to a specific set of values.
keywords: enumerated items, array items,
description: "Learn to restrict array items to specific values using the enum keyword in JSON schema, ensuring unique and case-sensitive items."
keywords: "enumerated items, array items, enum keyword, JSON schema, unique items, case-sensitive"
---


Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
title: Ensuring Array Content with the 'contains'
description: Learn how to use the 'contains' keyword in JSON Schema to ensure that arrays contain specific elements.
keywords: array, contains, validation, JSON Schema
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."
keywords: "array, contains, validation, JSON Schema, subschema, keyword, example, task, skills, const"
---


# Ensuring Array Content with the 'contains'

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).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: minContains and maxContains
description: Learn how to use the 'minContains' and 'maxContains' keywords in JSON Schema to ensure that arrays contain a specific number of elements.
keywords: array, minContains, maxContains, validation, JSON Schema
description: "Learn how to use the 'minContains' and 'maxContains' keywords in JSON Schema to ensure that arrays contain a specific number of elements matching a subschema, with examples and tasks."
keywords: "array, minContains, maxContains, validation, JSON Schema, subschema, contains"
---


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Ensuring Conditional Property Presence
description: Learn how to make properties dependent on each other in JSON Schema using dependentRequired keyword.
keywords: dependentRequired, conditional validation, JSON Schema
description: "Learn how to apply conditional validation in JSON Schema using dependentRequired, dependentSchemas, if-then-else, and implications keywords to make properties dependent on each other."
keywords: "dependentRequired, conditional validation, JSON Schema, dependentSchemas, if-then-else, implications"
---


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Ensuring Mutual Dependency
description: Learn how to make properties dependent on each other in JSON Schema using dependentRequired keyword.
keywords: dependentRequired, conditional validation, JSON Schema
description: "Learn how to make properties dependent on each other in JSON Schema using the dependentRequired keyword to enforce mutual dependency."
keywords: "dependentRequired, conditional validation, JSON Schema, mutual dependency, keyword"
---


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Conditionally Apply a Subschema
description: Learn how to conditionally apply a subschema in JSON Schema using the dependentSchemas keyword.
keywords: dependentSchemas, conditional validation, JSON Schema
description: "Learn how to conditionally apply a subschema in JSON Schema using the dependentSchemas keyword based on the presence or absence of a property."
keywords: "dependentSchemas, conditional validation, JSON Schema, subschema, keyword"
---


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: If-Then Keyword
description: Learn how to use the `if-then` keyword to enforce Implication in JSON Schema.
keywords: If-Then, Implication, conditional validation, JSON Schema
description: "Learn how to use the if-then keyword in JSON Schema to enforce conditional validation and implication, ensuring fields like salary and age are present based on conditions like isFullTime and isStudent."
keywords: "if-then, Implication, conditional validation, JSON Schema, isFullTime, salary, isStudent, age"
---


Expand Down Expand Up @@ -47,4 +47,4 @@ You can use the `if-then` keyword to enforce this condition.

You are given the [schema](https://json-schema.org/learn/glossary#schema) for the same JSON document in the <SideEditorLink/>. Modify the schema to enforce the below condition:

- **If** `isStudent` is true, **then** the `age` field must be present.
- **If** `isStudent` is true, **then** the `age` field must be present.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: If-Then-Else
description: Use the if-then-else keyword to apply conditional validation.
keywords: conditional validation, JSON Schema, If-Then-Else
description: "Learn how to use the if-then-else keyword in JSON Schema to apply conditional validation based on the value of a property."
keywords: "if-then-else, conditional validation, JSON Schema, subschema, keyword"
---


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Reusing and Referencing with $defs and $ref
description: Defining Subschemas with $defs and then referencing them with $ref
keywords: $defs, $ref, JSON Schema, subschemas,
description: "Define subschemas with $defs and reference them with $ref in JSON Schema to create modular and maintainable schemas."
keywords: "$defs, $ref, JSON Schema, subschemas, modular schemas, maintainable schemas"
---

# Combining Subschemas
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: $id and $schema
description: Learn how to use the $id and $schema keywords in JSON Schema
keywords: $id, $schema, JSON Schema
description: "Learn how to use the $id and $schema keywords in JSON Schema to define the URI and version of the schema."
keywords: "$id, $schema, JSON Schema, URI, version, keywords"
---

# $schema
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Valid Against allOf the Subschemas (AND)
description: Defining Subschemas with $defs and then referencing them with $ref
keywords: $defs, $ref, JSON Schema, subschemas,
description: "Define subschemas with $defs and reference them with $ref in JSON Schema to ensure an instance is valid against all of the subschemas."
keywords: "$defs, $ref, JSON Schema, subschemas, allOf keyword, AND operation"
---


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Valid Against oneOf the Subschemas (XOR)"
description: "Define properties with oneOf keyword to apply conditional validation."
keywords: "oneOf, properties, conditional validation"
description: "Use oneOf keyword in JSON Schema to ensure an instance is valid against exactly one of the subschemas."
keywords: "oneOf keyword, JSON Schema, conditional validation, properties, subschemas, XOR operation"
---

# Valid Against oneOf the Subschemas (XOR)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Valid Against anyOf the Subschemas (OR)
description: Define properties with anyOf keyword to apply conditional validation.
keywords: anyOf, properties, conditional validation
description: "Define properties with anyOf keyword in JSON Schema to apply conditional validation using multiple subschemas."
keywords: "anyOf keyword, JSON Schema, conditional validation, properties, subschemas"
---

# Valid Against anyOf the Subschemas (OR)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Inverting Validation with not
description: Invert the validation with the not keyword in JSON Schema.
keywords: not, properties, conditional validation
description: "Invert validation in JSON Schema using the not keyword to define conditional validation rules."
keywords: "not keyword, JSON Schema, conditional validation, properties, instance, subschemas"
---

# Inverting Validation with not
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Recursive Schemas
description: Learn how to define recursive schemas in JSON Schema.
keywords: defs, ref, recursive, schemas, JSON, JSON Schema
description: "Learn how to define recursive schemas in JSON Schema using $ref and $defs keywords to model hierarchical and recursive relationships."
keywords: "recursive schemas, JSON Schema, $ref, $defs, hierarchical data, recursive relationships"
---

# Recursive Schemas
Expand Down
Loading

0 comments on commit b16f22e

Please sign in to comment.