Commit 7aded01c authored by Rolway's avatar Rolway

update json schema

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