Skip to content

Instantly share code, notes, and snippets.

@gadflying
Created March 26, 2021 22:19
Show Gist options
  • Select an option

  • Save gadflying/54b27ddd98c447ea8024af3215a5105f to your computer and use it in GitHub Desktop.

Select an option

Save gadflying/54b27ddd98c447ea8024af3215a5105f to your computer and use it in GitHub Desktop.
[schema]
{
  "name": "George Washington",
  "birthday": "February 22, 1732",
  "address": "Mount Vernon, Virginia, United States"
}

{
  "first_name": "George",
  "last_name": "Washington",
  "birthday": "1732-02-22",
  "address": {
    "street_address": "3200 Mount Vernon Memorial Highway",
    "city": "Mount Vernon",
    "state": "Virginia",
    "country": "United States"
  }
}
{

  "type": "object",
  "properties": {
    "first_name": { "type": "string" },
    "last_name": { "type": "string" },
    "birthday": { "type": "string", "format": "date" },
    "address": {
      "type": "object",
      "properties": {
        "street_address": { "type": "string" },
        "city": { "type": "string" },
        "state": { "type": "string" },
        "country": { "type" : "string" }
      }
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment