Skip to content

Files

Latest commit

e05c9a0 · Mar 26, 2017

History

History
39 lines (32 loc) · 968 Bytes

examples.md

File metadata and controls

39 lines (32 loc) · 968 Bytes
layout
page

Basic example

Here is a basic example of a JSON Schema:

{
    "title": "Person",
    "type": "object",
    "properties": {
        "firstName": {
            "type": "string"
        },
        "lastName": {
            "type": "string"
        },
        "age": {
            "description": "Age in years",
            "type": "integer",
            "minimum": 0
        }
    },
    "required": ["firstName", "lastName"]
}

Walkthroughs

The two examples below are step-by-step guides into building a schema:

The Space Telescope Science Institute has also published a guide aimed at schema authors.