Commit 7aded01c authored by Rolway's avatar Rolway

update json schema

parent 1ea63e2a
...@@ -79,14 +79,17 @@ ...@@ -79,14 +79,17 @@
}, },
"earnings": { "earnings": {
"type": "string", "type": "string",
"pattern": "\\d*\\s{1}[A-Z]{3}",
"description": "The ISO 4217 currency code." "description": "The ISO 4217 currency code."
}, },
"total_assets": { "total_assets": {
"type": "string", "type": "string",
"pattern": "\\d*\\s{1}[A-Z]{3}",
"description": "The ISO 4217 currency code." "description": "The ISO 4217 currency code."
}, },
"revenues": { "revenues": {
"type": "string", "type": "string",
"pattern": "\\d*\\s{1}[A-Z]{3}",
"description": "The ISO 4217 currency code." "description": "The ISO 4217 currency code."
}, },
"source_url": { "source_url": {
...@@ -111,8 +114,12 @@ ...@@ -111,8 +114,12 @@
}, },
"created_year": { "created_year": {
"anyOf": [ "anyOf": [
{"type": "integer"}, {
{"type": "string"} "type": "integer"
},
{
"type": "string"
}
] ]
}, },
"description": { "description": {
...@@ -154,15 +161,24 @@ ...@@ -154,15 +161,24 @@
"type": "object", "type": "object",
"properties": { "properties": {
"title": { "title": {
"type": "string" "type": "string",
"minLength":1
}, },
"similar_solution_url": { "similar_solution_url": {
"type": "string" "type": "string",
"minLength":1
}, },
"category": { "category": {
"type": "string" "type": "string",
} "minLength":1
} }
},
"anyOf": [
{"required": ["title"] },
{"required": ["similar_solution_url"] },
{"required": ["category"] }
]
} }
}, },
"source_code_download": { "source_code_download": {
...@@ -274,4 +290,3 @@ ...@@ -274,4 +290,3 @@
} }
} }
] ]
\ No newline at end of file
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