Skip to content

Commit

Permalink
Schema: alphabetise components
Browse files Browse the repository at this point in the history
  • Loading branch information
rhiaro committed Dec 27, 2023
1 parent 2e529d1 commit 07ad8ef
Showing 1 changed file with 64 additions and 64 deletions.
128 changes: 64 additions & 64 deletions schema/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,70 +3,6 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"version": "0.4",
"$defs": {
"Agent": {
"type": "object",
"title": "Agent",
"description": "An individual, organisation or other responsible agent making, or supporting, a given statement or annotation.",
"properties": {
"name": {
"title": "Name",
"description": "The name of the agent",
"type": "string"
},
"uri": {
"title": "URI",
"description": "An optional URI to identify the agent.",
"type": "string",
"format": "uri"
}
}
},
"Identifier": {
"title": "Identifier",
"description": "An identifier that has been assigned to this person or entity. The scheme or list from which the identifier is drawn should be declared.",
"type": "object",
"properties": {
"id": {
"title": "ID",
"description": "The identifier for this person or entity as provided in the declared scheme.",
"type": "string"
},
"scheme": {
"title": "Scheme",
"description": "For entity statements, the scheme should be a entry from the org-id.guide (https://www.org-id.guide) codelist. For person statements, the scheme should have the pattern {JURISDICTION}-{TYPE} where JURISDICTION is an ISO 3-digit country code and TYPE is one of PASSPORT, TAXID or IDCARD. `scheme` or `schemeName` (or both) MUST be included in an Identifier object.",
"type": "string"
},
"schemeName": {
"title": "Scheme name",
"description": "The name of this scheme, where the org-id code is unknown or only an unvalidated string is provided. `scheme` or `schemeName` (or both) MUST be included in an Identifier object.",
"type": "string"
},
"uri": {
"title": "URI",
"description": "Where this identifier has a canonical URI (https://en.wikipedia.org/wiki/Uniform_Resource_Identifier) this may be included",
"type": "string",
"format": "uri"
}
},
"anyOf": [
{
"required": [
"scheme"
]
},
{
"required": [
"schemeName"
]
},
{
"required": [
"scheme",
"schemeName"
]
}
]
},
"Address": {
"title": "Address",
"description": "A free text address string, providing as much address data as is relevant, suitable for processing using address parsing algorithms. For some uses (for example, Place of Birth) only a town and country are required.",
Expand Down Expand Up @@ -106,6 +42,24 @@
}
}
},
"Agent": {
"type": "object",
"title": "Agent",
"description": "An individual, organisation or other responsible agent making, or supporting, a given statement or annotation.",
"properties": {
"name": {
"title": "Name",
"description": "The name of the agent",
"type": "string"
},
"uri": {
"title": "URI",
"description": "An optional URI to identify the agent.",
"type": "string",
"format": "uri"
}
}
},
"Country": {
"title": "Country",
"description": "A country MUST have a name. A country SHOULD have a 2-letter country code (ISO 3166-1)",
Expand Down Expand Up @@ -149,6 +103,52 @@
"required": [
"name"
]
},
"Identifier": {
"title": "Identifier",
"description": "An identifier that has been assigned to this person or entity. The scheme or list from which the identifier is drawn should be declared.",
"type": "object",
"properties": {
"id": {
"title": "ID",
"description": "The identifier for this person or entity as provided in the declared scheme.",
"type": "string"
},
"scheme": {
"title": "Scheme",
"description": "For entity statements, the scheme should be a entry from the org-id.guide (https://www.org-id.guide) codelist. For person statements, the scheme should have the pattern {JURISDICTION}-{TYPE} where JURISDICTION is an ISO 3-digit country code and TYPE is one of PASSPORT, TAXID or IDCARD. `scheme` or `schemeName` (or both) MUST be included in an Identifier object.",
"type": "string"
},
"schemeName": {
"title": "Scheme name",
"description": "The name of this scheme, where the org-id code is unknown or only an unvalidated string is provided. `scheme` or `schemeName` (or both) MUST be included in an Identifier object.",
"type": "string"
},
"uri": {
"title": "URI",
"description": "Where this identifier has a canonical URI (https://en.wikipedia.org/wiki/Uniform_Resource_Identifier) this may be included",
"type": "string",
"format": "uri"
}
},
"anyOf": [
{
"required": [
"scheme"
]
},
{
"required": [
"schemeName"
]
},
{
"required": [
"scheme",
"schemeName"
]
}
]
}
}
}

0 comments on commit 07ad8ef

Please sign in to comment.