Skip to the content.
⚠️ This schema has been marked as deprecated.

Draft 2019-09 - Deprecated Example

A schema demonstrating use of deprecated

$idhttps://example.com/deprecated.schema.json
$schemahttps://json-schema.org/draft/2019-09/schema

Properties

NameType
firstNameString
lastNameString

Example

{
    "firstName": "Neil",
    "lastName": "Williams"
}

firstName

Title First Name
Description A persons first name
TypeString
Required No

lastName

Deprecated true
Title Last Name
Description A persons last name
TypeString
Required No

Schema

{
    "$id": "https://example.com/deprecated.schema.json",
    "$schema": "https://json-schema.org/draft/2019-09/schema",
    "title": "Draft 2019-09 - Deprecated Example",
    "description": "A schema demonstrating use of deprecated",
    "examples": [
        {
            "firstName": "Neil",
            "lastName": "Williams"
        }
    ],
    "deprecated": true,
    "type": "object",
    "properties": {
        "firstName": {
            "deprecated": false,
            "type": "string",
            "title": "First Name",
            "description": "A persons first name"
        },
        "lastName": {
            "deprecated": true,
            "type": "string",
            "title": "Last Name",
            "description": "A persons last name"
        }
    }
}