Skip to content

Commit

Permalink
schema/service_capacity.json & schema/unit.json need capacity block set
Browse files Browse the repository at this point in the history
  • Loading branch information
odscjames committed Dec 4, 2024
1 parent 5365908 commit 7d75abd
Show file tree
Hide file tree
Showing 10 changed files with 540 additions and 105 deletions.
117 changes: 116 additions & 1 deletion datapackage.json
Original file line number Diff line number Diff line change
Expand Up @@ -2761,6 +2761,18 @@
"schema": {
"primaryKey": "id",
"fields": [
{
"name": "id",
"title": "Identifier",
"type": "string",
"constraints": {
"required": true,
"unique": true
},
"format": "uuid",
"description": "The identifier for the service_capacity object. Each service_capacity must have a unique identifier.",
"example": "8896b788-7b3e-11ef-8db9-7f3d040352b3"
},
{
"name": "service_id",
"title": "Service Identifier",
Expand All @@ -2784,6 +2796,51 @@
"unique": false
},
"example": "187a37a2-7b40-11ef-9790-dbf7623d4407"
},
{
"name": "available",
"title": "Available",
"type": "number",
"constraints": {
"required": true,
"unique": false
},
"description": "The number of units available as of the last update.",
"example": "12"
},
{
"name": "maximum",
"title": "Maximum",
"type": "number",
"constraints": {
"required": false,
"unique": false
},
"description": "The maximum number of units that can be available for this service, if applicable",
"example": "10"
},
{
"name": "description",
"title": "Description",
"type": "string",
"constraints": {
"required": false,
"unique": false
},
"description": "A Human-Friendly description of this service capacity e.g. \u201cBeds available for people experiencing homelessness\u201d",
"example": "Beds available for people experiencing homelessness."
},
{
"name": "updated",
"title": "Date Updated",
"type": "string",
"constraints": {
"required": true,
"unique": false
},
"format": "date-time",
"description": "The datetime when this service_capacit y object was last updated or changed. Should have millisecond accuracy. ",
"example": "2024-09-25T14:23:06.5+01:00"
}
],
"foreignKeys": [
Expand Down Expand Up @@ -2813,7 +2870,65 @@
"profile": "tabular-data-resource",
"schema": {
"primaryKey": "id",
"fields": []
"fields": [
{
"name": "id",
"type": "string",
"format": "uuid",
"constraints": {
"required": true,
"unique": true
},
"title": "Identifier",
"description": "The identifier for the unit object. Each unit must have a unique identifier.",
"example": "8896b788-7b3e-11ef-8db9-7f3d040352b3"
},
{
"name": "name",
"type": "string",
"constraints": {
"required": true,
"unique": false
},
"title": "Name",
"description": "The human-readable name for this unit e.g. \u201cBed\u201d or \u201cHours\u201d",
"example": "Kilogram"
},
{
"name": "scheme",
"type": "string",
"constraints": {
"required": false,
"unique": false
},
"title": "Scheme",
"description": "The scheme which formalizes the unit, if applicable e.g. \u201cSI\u201d for Standard International Units such as Kilogram, Litre, etc.",
"example": "SI"
},
{
"name": "identifier",
"type": "string",
"constraints": {
"required": false,
"unique": false
},
"title": "Unit Identifier",
"description": "The identifier of the unit taken from the scheme if applicable e.g. `kgm` for Kilogram.",
"example": "kgm"
},
{
"name": "uri",
"type": "string",
"constraints": {
"required": false,
"unique": false
},
"format": "uri",
"title": "URI",
"description": "The URI to the definition of the unit, if applicable",
"example": "https://not-a-real-url.org/standard-international-units/kgm"
}
]
}
},
{
Expand Down
40 changes: 40 additions & 0 deletions schema/compiled/organization.json
Original file line number Diff line number Diff line change
Expand Up @@ -65913,6 +65913,10 @@
"name": "id",
"title": "Identifier",
"type": "string",
"constraints": {
"required": true,
"unique": true
},
"format": "uuid",
"description": "The identifier for the service_capacity object. Each service_capacity must have a unique identifier.",
"example": "8896b788-7b3e-11ef-8db9-7f3d040352b3"
Expand Down Expand Up @@ -65944,34 +65948,54 @@
"name": "id",
"type": "string",
"format": "uuid",
"constraints": {
"required": true,
"unique": true
},
"title": "Identifier",
"description": "The identifier for the unit object. Each unit must have a unique identifier.",
"example": "8896b788-7b3e-11ef-8db9-7f3d040352b3"
},
"name": {
"name": "name",
"type": "string",
"constraints": {
"required": true,
"unique": false
},
"title": "Name",
"description": "The human-readable name for this unit e.g. \u201cBed\u201d or \u201cHours\u201d",
"example": "Kilogram"
},
"scheme": {
"name": "scheme",
"type": "string",
"constraints": {
"required": false,
"unique": false
},
"title": "Scheme",
"description": "The scheme which formalizes the unit, if applicable e.g. \u201cSI\u201d for Standard International Units such as Kilogram, Litre, etc.",
"example": "SI"
},
"identifier": {
"name": "identifier",
"type": "string",
"constraints": {
"required": false,
"unique": false
},
"title": "Unit Identifier",
"description": "The identifier of the unit taken from the scheme if applicable e.g. `kgm` for Kilogram.",
"example": "kgm"
},
"uri": {
"name": "uri",
"type": "string",
"constraints": {
"required": false,
"unique": false
},
"format": "uri",
"title": "URI",
"description": "The URI to the definition of the unit, if applicable",
Expand Down Expand Up @@ -66799,27 +66823,43 @@
"name": "available",
"title": "Available",
"type": "number",
"constraints": {
"required": true,
"unique": false
},
"description": "The number of units available as of the last update.",
"example": "12"
},
"maximum": {
"name": "maximum",
"title": "Maximum",
"type": "number",
"constraints": {
"required": false,
"unique": false
},
"description": "The maximum number of units that can be available for this service, if applicable",
"example": "10"
},
"description": {
"name": "description",
"title": "Description",
"type": "string",
"constraints": {
"required": false,
"unique": false
},
"description": "A Human-Friendly description of this service capacity e.g. \u201cBeds available for people experiencing homelessness\u201d",
"example": "Beds available for people experiencing homelessness."
},
"updated": {
"name": "updated",
"title": "Date Updated",
"type": "string",
"constraints": {
"required": true,
"unique": false
},
"format": "date-time",
"description": "The datetime when this service_capacit y object was last updated or changed. Should have millisecond accuracy. ",
"example": "2024-09-25T14:23:06.5+01:00"
Expand Down
40 changes: 40 additions & 0 deletions schema/compiled/organization_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65915,6 +65915,10 @@
"name": "id",
"title": "Identifier",
"type": "string",
"constraints": {
"required": true,
"unique": true
},
"format": "uuid",
"description": "The identifier for the service_capacity object. Each service_capacity must have a unique identifier.",
"example": "8896b788-7b3e-11ef-8db9-7f3d040352b3"
Expand Down Expand Up @@ -65946,34 +65950,54 @@
"name": "id",
"type": "string",
"format": "uuid",
"constraints": {
"required": true,
"unique": true
},
"title": "Identifier",
"description": "The identifier for the unit object. Each unit must have a unique identifier.",
"example": "8896b788-7b3e-11ef-8db9-7f3d040352b3"
},
"name": {
"name": "name",
"type": "string",
"constraints": {
"required": true,
"unique": false
},
"title": "Name",
"description": "The human-readable name for this unit e.g. \u201cBed\u201d or \u201cHours\u201d",
"example": "Kilogram"
},
"scheme": {
"name": "scheme",
"type": "string",
"constraints": {
"required": false,
"unique": false
},
"title": "Scheme",
"description": "The scheme which formalizes the unit, if applicable e.g. \u201cSI\u201d for Standard International Units such as Kilogram, Litre, etc.",
"example": "SI"
},
"identifier": {
"name": "identifier",
"type": "string",
"constraints": {
"required": false,
"unique": false
},
"title": "Unit Identifier",
"description": "The identifier of the unit taken from the scheme if applicable e.g. `kgm` for Kilogram.",
"example": "kgm"
},
"uri": {
"name": "uri",
"type": "string",
"constraints": {
"required": false,
"unique": false
},
"format": "uri",
"title": "URI",
"description": "The URI to the definition of the unit, if applicable",
Expand Down Expand Up @@ -66801,27 +66825,43 @@
"name": "available",
"title": "Available",
"type": "number",
"constraints": {
"required": true,
"unique": false
},
"description": "The number of units available as of the last update.",
"example": "12"
},
"maximum": {
"name": "maximum",
"title": "Maximum",
"type": "number",
"constraints": {
"required": false,
"unique": false
},
"description": "The maximum number of units that can be available for this service, if applicable",
"example": "10"
},
"description": {
"name": "description",
"title": "Description",
"type": "string",
"constraints": {
"required": false,
"unique": false
},
"description": "A Human-Friendly description of this service capacity e.g. \u201cBeds available for people experiencing homelessness\u201d",
"example": "Beds available for people experiencing homelessness."
},
"updated": {
"name": "updated",
"title": "Date Updated",
"type": "string",
"constraints": {
"required": true,
"unique": false
},
"format": "date-time",
"description": "The datetime when this service_capacit y object was last updated or changed. Should have millisecond accuracy. ",
"example": "2024-09-25T14:23:06.5+01:00"
Expand Down
Loading

0 comments on commit 7d75abd

Please sign in to comment.