mirror of
https://github.com/KevinMidboe/linguist.git
synced 2026-01-06 01:15:33 +00:00
Add a few more json samples
This commit is contained in:
47
samples/JSON/schema.json
Normal file
47
samples/JSON/schema.json
Normal file
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"name":"Product",
|
||||
"properties":
|
||||
{
|
||||
"id":
|
||||
{
|
||||
"type":"number",
|
||||
"description":"Product identifier",
|
||||
"required":true
|
||||
},
|
||||
"name":
|
||||
{
|
||||
"type":"string",
|
||||
"description":"Name of the product",
|
||||
"required":true
|
||||
},
|
||||
"price":
|
||||
{
|
||||
"type":"number",
|
||||
"minimum":0,
|
||||
"required":true
|
||||
},
|
||||
"tags":
|
||||
{
|
||||
"type":"array",
|
||||
"items":
|
||||
{
|
||||
"type":"string"
|
||||
}
|
||||
},
|
||||
"stock":
|
||||
{
|
||||
"type":"object",
|
||||
"properties":
|
||||
{
|
||||
"warehouse":
|
||||
{
|
||||
"type":"number"
|
||||
},
|
||||
"retail":
|
||||
{
|
||||
"type":"number"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user