Skip to content

Commit 149f77c

Browse files
committed
schema: added $id properties to schemas
Added `$id` properties to schemas to experiment with implications, as discussed in #561. There's no need to change $ref due to how URI resolution works in JSON Schema 2020-12; in short we only need to declare the full URI when we're referencing schemas that aren't going to be co-located (so basically, if we want to borrow someone elses' schema for something). One thing I am thinking about is how the canonical schemas are really the "compiled" schemas, and how not every schema is compiled. Currently, if these schemas are compiled then the id for the compiled schemas would lead to the uncompiled schemas. This seems wrong to me, and bears some thinking about.
1 parent 9e946e2 commit 149f77c

23 files changed

Lines changed: 25 additions & 2 deletions

schema/accessibility.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$id": "https://raw.githubusercontent.com/openreferral/specification/refs/heads/3.2/schema/accessibility.json",
23
"name": "accessibility",
34
"path": "accessibility.csv",
45
"description": "The details of the arrangements for access to locations for people who have disabilities.",

schema/address.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$id": "https://raw.githubusercontent.com/openreferral/specification/refs/heads/3.2/schema/address.json",
23
"name": "address",
34
"path": "addresses.csv",
45
"description": "The addresses of locations where organizations operate.",

schema/attribute.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$id": "https://raw.githubusercontent.com/openreferral/specification/refs/heads/3.2/schema/attribute.json",
23
"name": "attribute",
34
"path": "attributes.csv",
45
"description": "A link between a service and one or more classifications that describe the nature of the service provided.",

schema/contact.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$id": "https://raw.githubusercontent.com/openreferral/specification/refs/heads/3.2/schema/contact.json",
23
"name": "contact",
34
"path": "contacts.csv",
45
"description": "The details of the named contacts for services and organizations.",

schema/cost_option.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$id": "https://raw.githubusercontent.com/openreferral/specification/refs/heads/3.2/schema/cost_option.json",
23
"name": "cost_option",
34
"path": "cost_options.csv",
45
"description": "The costs of a service at certain points in time. This is an LGA Extension. This object provides a structured version of the text information contained in the 'fees' field of the 'service' object.",

schema/funding.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$id": "https://raw.githubusercontent.com/openreferral/specification/refs/heads/3.2/schema/funding.json",
23
"name": "funding",
34
"path": "funding.csv",
45
"description": "The sources of funding for a service or organization.",

schema/language.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$id": "https://raw.githubusercontent.com/openreferral/specification/refs/heads/3.2/schema/language.json",
23
"name": "language",
34
"path": "languages.csv",
45
"description": "The languages that are spoken at locations or services. This does not include languages which can only be used with interpretation.",

schema/location.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$id": "https://raw.githubusercontent.com/openreferral/specification/refs/heads/3.2/schema/location.json",
23
"name": "location",
34
"path": "locations.csv",
45
"description": "The locations where organizations operate. Locations may be virtual, and one organization may have many locations.",

schema/metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$id": "https://raw.githubusercontent.com/openreferral/specification/refs/heads/3.2/schema/metadata.json",
23
"name": "metadata",
34
"path": "metadata.csv",
45
"description": "A record of the changes that have been made to the data in order to maintain provenance information.",
@@ -117,4 +118,4 @@
117118
"resource_id",
118119
"resource_type"
119120
]
120-
}
121+
}

schema/organization.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$id": "https://raw.githubusercontent.com/openreferral/specification/refs/heads/3.2/schema/organization.json",
23
"name": "organization",
34
"path": "organizations.csv",
45
"description": "The details about each organization delivering services. Each service should be linked to the organization responsible for its delivery. One organization may deliver many services.",

0 commit comments

Comments
 (0)