Commit d133748e authored by Roland's avatar Roland Committed by GitHub

Update JSON-schema.json

parent 9e09f132
...@@ -3,8 +3,9 @@ ...@@ -3,8 +3,9 @@
"$schema": "https://json-schema.org/draft/2020-12/schema", "$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object", "type": "object",
"properties": { "properties": {
"location":{ "location": {
"type":"object" "type": "object",
"properties": {
"title": { "title": {
"type": "string", "type": "string",
"description": "name" "description": "name"
...@@ -23,7 +24,8 @@ ...@@ -23,7 +24,8 @@
"description": "name" "description": "name"
}, },
"country": { "country": {
"type": ["string","pattern": "^[A-Z]{2}$"] "type": "string",
"pattern": "^[A-Z]{2}$",
"description": "A valid 2-digit ISO country code (ISO 3166-1 alpha-2)" "description": "A valid 2-digit ISO country code (ISO 3166-1 alpha-2)"
}, },
"phone_contact": { "phone_contact": {
...@@ -36,11 +38,33 @@ ...@@ -36,11 +38,33 @@
"type": "", "type": "",
"minimum": 0 "minimum": 0
}, },
"coordinate_list":{ "coordinate_list": {
"description": "", "description": "",
"type": "type": "string"
} }
} }
"title": "", },
"type": "object", "subsidiary_location_list":{
"type": "array"
},
"solution_list": {
"type": "array",
"properties": { "properties": {
"title":{
"type": "string"
},
"solution_sub_list": {
"type":"array",
"items": {
"type":"object",
"properties":{
"title": {
"type": "string"
},
"description":"sss"
}
}
}
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment