Skip to content

Instantly share code, notes, and snippets.

@marcocastignoli
Last active September 17, 2021 12:48
Show Gist options
  • Select an option

  • Save marcocastignoli/720b13a82e9c8e7b04954d35276722f7 to your computer and use it in GitHub Desktop.

Select an option

Save marcocastignoli/720b13a82e9c8e7b04954d35276722f7 to your computer and use it in GitHub Desktop.
hello
{
"name": "Marco Casti",
"age": 26,
"favorite_color": "#ffa500",
"gender": "male",
"date": "",
"pets": [
{
"type": "dog",
"name": "Walter"
},
{
"type": "dog",
"name": "pippo"
},
{
"type": "other",
"name": "ciao"
}
]
}
{
"title": "Volley",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "First and Last name",
"minLength": 4,
"default": "Jeremy Dorn"
},
"age": {
"type": "integer",
"default": 25,
"minimum": 18,
"maximum": 99
},
"favorite_color": {
"type": "string",
"format": "color",
"title": "favorite color",
"default": "#ffa500"
},
"gender": {
"type": "string",
"enum": [
"male",
"female",
"other"
]
},
"date": {
"type": "string",
"format": "date",
"options": {
"flatpickr": {}
}
},
"pets": {
"type": "array",
"format": "table",
"title": "Pets",
"uniqueItems": true,
"items": {
"type": "object",
"title": "Pet",
"properties": {
"type": {
"type": "string",
"enum": [
"cat",
"dog",
"bird",
"reptile",
"other",
"marco"
],
"default": "dog"
},
"name": {
"type": "string"
}
}
},
"default": [
{
"type": "dog",
"name": "Walter"
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment