Skip to content

Commit 9553c42

Browse files
committed
schema/service_capacity.json & schema/unit.json need capacity block set
#528
1 parent 5365908 commit 9553c42

10 files changed

+540
-105
lines changed

datapackage.json

+116-1
Original file line numberDiff line numberDiff line change
@@ -2761,6 +2761,18 @@
27612761
"schema": {
27622762
"primaryKey": "id",
27632763
"fields": [
2764+
{
2765+
"name": "id",
2766+
"title": "Identifier",
2767+
"type": "string",
2768+
"constraints": {
2769+
"required": true,
2770+
"unique": false
2771+
},
2772+
"format": "uuid",
2773+
"description": "The identifier for the service_capacity object. Each service_capacity must have a unique identifier.",
2774+
"example": "8896b788-7b3e-11ef-8db9-7f3d040352b3"
2775+
},
27642776
{
27652777
"name": "service_id",
27662778
"title": "Service Identifier",
@@ -2784,6 +2796,51 @@
27842796
"unique": false
27852797
},
27862798
"example": "187a37a2-7b40-11ef-9790-dbf7623d4407"
2799+
},
2800+
{
2801+
"name": "available",
2802+
"title": "Available",
2803+
"type": "number",
2804+
"constraints": {
2805+
"required": true,
2806+
"unique": false
2807+
},
2808+
"description": "The number of units available as of the last update.",
2809+
"example": "12"
2810+
},
2811+
{
2812+
"name": "maximum",
2813+
"title": "Maximum",
2814+
"type": "number",
2815+
"constraints": {
2816+
"required": false,
2817+
"unique": false
2818+
},
2819+
"description": "The maximum number of units that can be available for this service, if applicable",
2820+
"example": "10"
2821+
},
2822+
{
2823+
"name": "description",
2824+
"title": "Description",
2825+
"type": "string",
2826+
"constraints": {
2827+
"required": false,
2828+
"unique": false
2829+
},
2830+
"description": "A Human-Friendly description of this service capacity e.g. \u201cBeds available for people experiencing homelessness\u201d",
2831+
"example": "Beds available for people experiencing homelessness."
2832+
},
2833+
{
2834+
"name": "updated",
2835+
"title": "Date Updated",
2836+
"type": "string",
2837+
"constraints": {
2838+
"required": true,
2839+
"unique": false
2840+
},
2841+
"format": "date-time",
2842+
"description": "The datetime when this service_capacit y object was last updated or changed. Should have millisecond accuracy. ",
2843+
"example": "2024-09-25T14:23:06.5+01:00"
27872844
}
27882845
],
27892846
"foreignKeys": [
@@ -2813,7 +2870,65 @@
28132870
"profile": "tabular-data-resource",
28142871
"schema": {
28152872
"primaryKey": "id",
2816-
"fields": []
2873+
"fields": [
2874+
{
2875+
"name": "id",
2876+
"type": "string",
2877+
"format": "uuid",
2878+
"constraints": {
2879+
"required": true,
2880+
"unique": false
2881+
},
2882+
"title": "Identifier",
2883+
"description": "The identifier for the unit object. Each unit must have a unique identifier.",
2884+
"example": "8896b788-7b3e-11ef-8db9-7f3d040352b3"
2885+
},
2886+
{
2887+
"name": "name",
2888+
"type": "string",
2889+
"constraints": {
2890+
"required": true,
2891+
"unique": false
2892+
},
2893+
"title": "Name",
2894+
"description": "The human-readable name for this unit e.g. \u201cBed\u201d or \u201cHours\u201d",
2895+
"example": "Kilogram"
2896+
},
2897+
{
2898+
"name": "scheme",
2899+
"type": "string",
2900+
"constraints": {
2901+
"required": false,
2902+
"unique": false
2903+
},
2904+
"title": "Scheme",
2905+
"description": "The scheme which formalizes the unit, if applicable e.g. \u201cSI\u201d for Standard International Units such as Kilogram, Litre, etc.",
2906+
"example": "SI"
2907+
},
2908+
{
2909+
"name": "identifier",
2910+
"type": "string",
2911+
"constraints": {
2912+
"required": false,
2913+
"unique": false
2914+
},
2915+
"title": "Unit Identifier",
2916+
"description": "The identifier of the unit taken from the scheme if applicable e.g. `kgm` for Kilogram.",
2917+
"example": "kgm"
2918+
},
2919+
{
2920+
"name": "uri",
2921+
"type": "string",
2922+
"constraints": {
2923+
"required": false,
2924+
"unique": false
2925+
},
2926+
"format": "uri",
2927+
"title": "URI",
2928+
"description": "The URI to the definition of the unit, if applicable",
2929+
"example": "https://not-a-real-url.org/standard-international-units/kgm"
2930+
}
2931+
]
28172932
}
28182933
},
28192934
{

schema/compiled/organization.json

+40
Original file line numberDiff line numberDiff line change
@@ -65913,6 +65913,10 @@
6591365913
"name": "id",
6591465914
"title": "Identifier",
6591565915
"type": "string",
65916+
"constraints": {
65917+
"required": false,
65918+
"unique": false
65919+
},
6591665920
"format": "uuid",
6591765921
"description": "The identifier for the service_capacity object. Each service_capacity must have a unique identifier.",
6591865922
"example": "8896b788-7b3e-11ef-8db9-7f3d040352b3"
@@ -65944,34 +65948,54 @@
6594465948
"name": "id",
6594565949
"type": "string",
6594665950
"format": "uuid",
65951+
"constraints": {
65952+
"required": false,
65953+
"unique": false
65954+
},
6594765955
"title": "Identifier",
6594865956
"description": "The identifier for the unit object. Each unit must have a unique identifier.",
6594965957
"example": "8896b788-7b3e-11ef-8db9-7f3d040352b3"
6595065958
},
6595165959
"name": {
6595265960
"name": "name",
6595365961
"type": "string",
65962+
"constraints": {
65963+
"required": false,
65964+
"unique": false
65965+
},
6595465966
"title": "Name",
6595565967
"description": "The human-readable name for this unit e.g. \u201cBed\u201d or \u201cHours\u201d",
6595665968
"example": "Kilogram"
6595765969
},
6595865970
"scheme": {
6595965971
"name": "scheme",
6596065972
"type": "string",
65973+
"constraints": {
65974+
"required": false,
65975+
"unique": false
65976+
},
6596165977
"title": "Scheme",
6596265978
"description": "The scheme which formalizes the unit, if applicable e.g. \u201cSI\u201d for Standard International Units such as Kilogram, Litre, etc.",
6596365979
"example": "SI"
6596465980
},
6596565981
"identifier": {
6596665982
"name": "identifier",
6596765983
"type": "string",
65984+
"constraints": {
65985+
"required": false,
65986+
"unique": false
65987+
},
6596865988
"title": "Unit Identifier",
6596965989
"description": "The identifier of the unit taken from the scheme if applicable e.g. `kgm` for Kilogram.",
6597065990
"example": "kgm"
6597165991
},
6597265992
"uri": {
6597365993
"name": "uri",
6597465994
"type": "string",
65995+
"constraints": {
65996+
"required": false,
65997+
"unique": false
65998+
},
6597565999
"format": "uri",
6597666000
"title": "URI",
6597766001
"description": "The URI to the definition of the unit, if applicable",
@@ -66799,27 +66823,43 @@
6679966823
"name": "available",
6680066824
"title": "Available",
6680166825
"type": "number",
66826+
"constraints": {
66827+
"required": false,
66828+
"unique": false
66829+
},
6680266830
"description": "The number of units available as of the last update.",
6680366831
"example": "12"
6680466832
},
6680566833
"maximum": {
6680666834
"name": "maximum",
6680766835
"title": "Maximum",
6680866836
"type": "number",
66837+
"constraints": {
66838+
"required": false,
66839+
"unique": false
66840+
},
6680966841
"description": "The maximum number of units that can be available for this service, if applicable",
6681066842
"example": "10"
6681166843
},
6681266844
"description": {
6681366845
"name": "description",
6681466846
"title": "Description",
6681566847
"type": "string",
66848+
"constraints": {
66849+
"required": false,
66850+
"unique": false
66851+
},
6681666852
"description": "A Human-Friendly description of this service capacity e.g. \u201cBeds available for people experiencing homelessness\u201d",
6681766853
"example": "Beds available for people experiencing homelessness."
6681866854
},
6681966855
"updated": {
6682066856
"name": "updated",
6682166857
"title": "Date Updated",
6682266858
"type": "string",
66859+
"constraints": {
66860+
"required": false,
66861+
"unique": false
66862+
},
6682366863
"format": "date-time",
6682466864
"description": "The datetime when this service_capacit y object was last updated or changed. Should have millisecond accuracy. ",
6682566865
"example": "2024-09-25T14:23:06.5+01:00"

schema/compiled/organization_package.json

+40
Original file line numberDiff line numberDiff line change
@@ -65915,6 +65915,10 @@
6591565915
"name": "id",
6591665916
"title": "Identifier",
6591765917
"type": "string",
65918+
"constraints": {
65919+
"required": false,
65920+
"unique": false
65921+
},
6591865922
"format": "uuid",
6591965923
"description": "The identifier for the service_capacity object. Each service_capacity must have a unique identifier.",
6592065924
"example": "8896b788-7b3e-11ef-8db9-7f3d040352b3"
@@ -65946,34 +65950,54 @@
6594665950
"name": "id",
6594765951
"type": "string",
6594865952
"format": "uuid",
65953+
"constraints": {
65954+
"required": false,
65955+
"unique": false
65956+
},
6594965957
"title": "Identifier",
6595065958
"description": "The identifier for the unit object. Each unit must have a unique identifier.",
6595165959
"example": "8896b788-7b3e-11ef-8db9-7f3d040352b3"
6595265960
},
6595365961
"name": {
6595465962
"name": "name",
6595565963
"type": "string",
65964+
"constraints": {
65965+
"required": false,
65966+
"unique": false
65967+
},
6595665968
"title": "Name",
6595765969
"description": "The human-readable name for this unit e.g. \u201cBed\u201d or \u201cHours\u201d",
6595865970
"example": "Kilogram"
6595965971
},
6596065972
"scheme": {
6596165973
"name": "scheme",
6596265974
"type": "string",
65975+
"constraints": {
65976+
"required": false,
65977+
"unique": false
65978+
},
6596365979
"title": "Scheme",
6596465980
"description": "The scheme which formalizes the unit, if applicable e.g. \u201cSI\u201d for Standard International Units such as Kilogram, Litre, etc.",
6596565981
"example": "SI"
6596665982
},
6596765983
"identifier": {
6596865984
"name": "identifier",
6596965985
"type": "string",
65986+
"constraints": {
65987+
"required": false,
65988+
"unique": false
65989+
},
6597065990
"title": "Unit Identifier",
6597165991
"description": "The identifier of the unit taken from the scheme if applicable e.g. `kgm` for Kilogram.",
6597265992
"example": "kgm"
6597365993
},
6597465994
"uri": {
6597565995
"name": "uri",
6597665996
"type": "string",
65997+
"constraints": {
65998+
"required": false,
65999+
"unique": false
66000+
},
6597766001
"format": "uri",
6597866002
"title": "URI",
6597966003
"description": "The URI to the definition of the unit, if applicable",
@@ -66801,27 +66825,43 @@
6680166825
"name": "available",
6680266826
"title": "Available",
6680366827
"type": "number",
66828+
"constraints": {
66829+
"required": false,
66830+
"unique": false
66831+
},
6680466832
"description": "The number of units available as of the last update.",
6680566833
"example": "12"
6680666834
},
6680766835
"maximum": {
6680866836
"name": "maximum",
6680966837
"title": "Maximum",
6681066838
"type": "number",
66839+
"constraints": {
66840+
"required": false,
66841+
"unique": false
66842+
},
6681166843
"description": "The maximum number of units that can be available for this service, if applicable",
6681266844
"example": "10"
6681366845
},
6681466846
"description": {
6681566847
"name": "description",
6681666848
"title": "Description",
6681766849
"type": "string",
66850+
"constraints": {
66851+
"required": false,
66852+
"unique": false
66853+
},
6681866854
"description": "A Human-Friendly description of this service capacity e.g. \u201cBeds available for people experiencing homelessness\u201d",
6681966855
"example": "Beds available for people experiencing homelessness."
6682066856
},
6682166857
"updated": {
6682266858
"name": "updated",
6682366859
"title": "Date Updated",
6682466860
"type": "string",
66861+
"constraints": {
66862+
"required": false,
66863+
"unique": false
66864+
},
6682566865
"format": "date-time",
6682666866
"description": "The datetime when this service_capacit y object was last updated or changed. Should have millisecond accuracy. ",
6682766867
"example": "2024-09-25T14:23:06.5+01:00"

0 commit comments

Comments
 (0)