Commit 7aded01c authored by Rolway's avatar Rolway

update json schema

parent 1ea63e2a
[
{
"$id": "https://example.com/person.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
{
"$id": "https://example.com/person.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"created": {
"type": "string",
"format": "date"
},
"title": {
"type": "string"
},
"type": {
"type": "string"
},
"logo_url": {
"type": "string"
},
"location": {
"type": "object",
"properties": {
"created": {
"type": "string",
"format": "date"
},
"title": {
"type": "string"
},
"type": {
"type": "string"
},
"logo_url": {
"type": "string"
},
"location": {
"title": {
"type": "string",
"description": "name"
},
"address": {
"type": "string",
"description": "Company address"
},
"postal-code": {
"description": "Postal code must be composed of 5 numbers equal or greater than 0",
"type": "string"
},
"city": {
"type": "string",
"description": "name"
},
"country": {
"type": "string",
"pattern": "^[A-Z]{2}$",
"description": "A valid 2-digit ISO country code (ISO 3166-1 alpha-2)"
},
"phone_contact": {
"description": "Phone number which must be equal to or greater than zero preceded by",
"type": "string"
},
"mail_contact": {
"description": "",
"type": "string"
},
"coordinate_list": {
"description": "Geographical coordinates of the company",
"type": "array"
}
}
},
"subsidiary_location_list": {
"type": "array",
"pattern": "^[A-Z]{2}$",
"description": "A valid 2-digit ISO country code (ISO 3166-1 alpha-2)"
},
"website_url": {
"type": "string"
},
"founded_year": {
"type": "integer"
},
"kpi_list": {
"type": "array",
"items": {
"type": "object",
"properties": {
"year": {
"type": "integer"
},
"staff": {
"type": "number"
},
"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": {
"type": "string"
}
}
}
},
"solution_list": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"logo_url": {
"type": "string"
},
"website_url": {
"type": "string"
},
"created_year": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
]
},
"description": {
"type": "string"
},
"category_list": {
"type": "array",
"items": {
"enum": [
"Storage and database",
"Compute virtualisation",
"Desktop virtualisation",
"vRan",
"Operation management",
"Service lifecycle automation",
"Networking",
"Identity",
"Cybersecurity",
"Application",
"Workspace",
"Developer environment",
"Developer API",
"Communication",
"IoT and industrial",
"Big Data Hub",
"Server",
"Switch",
"Router",
"Rack",
"Cooling",
"CPU",
"Radio"
]
}
},
"similar_solution_list": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "name"
},
"address": {
"type": "string",
"description": "Company address"
},
"postal-code": {
"description": "Postal code must be composed of 5 numbers equal or greater than 0",
"type": "string"
},
"city": {
"type": "string",
"description": "name"
},
"country": {
"type": "string",
"pattern": "^[A-Z]{2}$",
"description": "A valid 2-digit ISO country code (ISO 3166-1 alpha-2)"
},
"phone_contact": {
"description": "Phone number which must be equal to or greater than zero preceded by",
"type": "string"
},
"mail_contact": {
"description": "",
"type": "string"
},
"coordinate_list": {
"description": "Geographical coordinates of the company",
"type": "array"
}
}
"title": {
"type": "string",
"minLength":1
},
"similar_solution_url": {
"type": "string",
"minLength":1
},
"category": {
"type": "string",
"minLength":1
}
},
"anyOf": [
{"required": ["title"] },
{"required": ["similar_solution_url"] },
{"required": ["category"] }
]
}
},
"subsidiary_location_list": {
"type": "array",
"pattern": "^[A-Z]{2}$",
"description": "A valid 2-digit ISO country code (ISO 3166-1 alpha-2)"
"source_code_download": {
"type": "string"
},
"website_url": {
"type": "string"
},
"founded_year": {
"type": "integer"
},
"kpi_list": {
"type": "array",
"items": {
"type": "object",
"properties": {
"year": {
"type": "integer"
},
"staff": {
"type": "number"
},
"earnings": {
"type": "string",
"description": "The ISO 4217 currency code."
},
"total_assets": {
"type": "string",
"description": "The ISO 4217 currency code."
},
"revenues": {
"type": "string",
"description": "The ISO 4217 currency code."
},
"source_url": {
"type": "string"
}
}
"source_code_profile": {
"type": "string"
},
"commercial_support_url": {
"type": "string"
},
"floss_software": {
"type": "boolean"
},
"commercial_support_open_source_version": {
"type": "boolean"
},
"commercial_support_available": {
"type": "boolean"
},
"wikipedia_url": {
"type": "string"
},
"reference_list": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"logo_url": {
"type": "string"
},
"country": {
"type": "string",
"pattern": "^[A-Z]{2}$",
"description": "A valid 2-digit ISO country code (ISO 3166-1 alpha-2)"
},
"industry": {
"type": "string"
}
}
}
},
"solution_list": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"logo_url": {
"type": "string"
},
"website_url": {
"type": "string"
},
"created_year": {
"anyOf": [
{"type": "integer"},
{"type": "string"}
]
},
"description": {
"type": "string"
},
"category_list": {
"type": "array",
"items": {
"enum": [
"Storage and database",
"Compute virtualisation",
"Desktop virtualisation",
"vRan",
"Operation management",
"Service lifecycle automation",
"Networking",
"Identity",
"Cybersecurity",
"Application",
"Workspace",
"Developer environment",
"Developer API",
"Communication",
"IoT and industrial",
"Big Data Hub",
"Server",
"Switch",
"Router",
"Rack",
"Cooling",
"CPU",
"Radio"
]
}
},
"similar_solution_list": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"similar_solution_url": {
"type": "string"
},
"category": {
"type": "string"
}
}
}
},
"source_code_download": {
"type": "string"
},
"source_code_profile": {
"type": "string"
},
"commercial_support_url": {
"type": "string"
},
"floss_software": {
"type": "boolean"
},
"commercial_support_open_source_version": {
"type": "boolean"
},
"commercial_support_available": {
"type": "boolean"
},
"wikipedia_url": {
"type": "string"
},
"reference_list": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"logo_url": {
"type": "string"
},
"country": {
"type": "string",
"pattern": "^[A-Z]{2}$",
"description": "A valid 2-digit ISO country code (ISO 3166-1 alpha-2)"
},
"industry": {
"type": "string"
}
}
}
},
"success_case_list": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"image_url": {
"type": "string"
},
"industry": {
"enum": [
"Academia and Research",
"Agriculture and Food",
"Associations and NGOs",
"Aviation and Aerospace",
"Automotive",
"Banking and Finance",
"Chemicals",
"Commerce and Retail",
"Construction",
"Consulting and Training",
"Defense",
"Education",
"Energy and Utilities",
"Health and Life Sciences",
"Housing and Real Estate",
"Insurance",
"Information Technology",
"Manufacturing",
"Media and Entertainment",
"Public Administration and Government",
"Telecommunication",
"Transport",
"Travel and Tourism"
]
},
"customer": {
"type": "string"
},
"country": {
"type": "string",
"pattern": "^[A-Z]{2}$",
"description": "A valid 2-digit ISO country code (ISO 3166-1 alpha-2)"
},
"language": {
"type": "string",
"pattern": "^[a-z]{2}$",
"description": "A valid 2-digit ISO language code"
},
"success_case_url": {
"type": "string"
}
}
}
}
}
}
}
}
"success_case_list": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"image_url": {
"type": "string"
},
"industry": {
"enum": [
"Academia and Research",
"Agriculture and Food",
"Associations and NGOs",
"Aviation and Aerospace",
"Automotive",
"Banking and Finance",
"Chemicals",
"Commerce and Retail",
"Construction",
"Consulting and Training",
"Defense",
"Education",
"Energy and Utilities",
"Health and Life Sciences",
"Housing and Real Estate",
"Insurance",
"Information Technology",
"Manufacturing",
"Media and Entertainment",
"Public Administration and Government",
"Telecommunication",
"Transport",
"Travel and Tourism"
]
},
"customer": {
"type": "string"
},
"country": {
"type": "string",
"pattern": "^[A-Z]{2}$",
"description": "A valid 2-digit ISO country code (ISO 3166-1 alpha-2)"
},
"language": {
"type": "string",
"pattern": "^[a-z]{2}$",
"description": "A valid 2-digit ISO language code"
},
"success_case_url": {
"type": "string"
}
}
}
}
}
}
}
}
]
}
]
\ 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