Skip to content

Commit

Permalink
Adjusted definition of DeiApplicationArea and the references to it so
Browse files Browse the repository at this point in the history
that titles can be applied by flatten-tool. This makes the schema
technically invalid against Draft 04 but when the extension schema is
merged into the standard and then compiled/dereferenced properly, it
passes as valid and supports round-tripping.
  • Loading branch information
Matt Marshall committed Dec 28, 2023
1 parent 9470bbb commit f114557
Showing 1 changed file with 69 additions and 61 deletions.
130 changes: 69 additions & 61 deletions schema/360-giving-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,69 +2,61 @@
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
"DeiApplicationArea": {
"type": "object",
"title": "DEI Application Area",
"description": "A DEI application area used to collect information about whether a particular question was asked, responded to, and additional information. It also contains the response information under the Response fields.",
"required": [
"askedStatus"
],
"properties": {
"askedStatus": {
"askedStatus": {
"type": "string",
"title": "Asked Status",
"description": "A code referring to how this question was asked. The value for this field should be drawn from the Asked Status codelist.",
"codelist": "askedStatus.csv",
"openCodelist": false
},
"replyStatus": {
"type": "string",
"title": "Reply Status",
"description": "A code referring to the status of the reply to this question. The value for this field should be drawn from the Reply Status codelist.",
"codelist": "replyStatus.csv",
"openCodelist": false
},
"availableOptions": {
"type": "array",
"title": "Available Options",
"description": "Code(s) referring to options which were available when the question was asked. The value for these codes should be drawn from the Available Options codelist.",
"items": {
"type": "string",
"title": "Asked Status",
"description": "A code referring to how this question was asked. The value for this field should be drawn from the Asked Status codelist.",
"codelist": "askedStatus.csv",
"codelist": "availableOptions.csv",
"openCodelist": false
},
"replyStatus": {
"type": "string",
"title": "Reply Status",
"description": "A code referring to the status of the reply to this question. The value for this field should be drawn from the Reply Status codelist.",
"codelist": "replyStatus.csv",
"openCodelist": false
},
"availableOptions": {
"type": "array",
"title": "Available Options",
"description": "Code(s) referring to options which were available when the question was asked. The value for these codes should be drawn from the Available Options codelist.",
"items": {
"type": "string",
"codelist": "availableOptions.csv",
"openCodelist": false
},
"uniqueItems": true
},
"additionalDetails": {
"type": "string",
"title": "Additional Details",
"description": "A free text field to include any additional details or rationales that may be important to this context."
},
"response": {
"type": "object",
"title": "DEI Response",
"description": "A response to a DEI Application area, containing information such as the taxonomy codes selected and any lived experience or geography responses.",
"properties": {
"taxonomyCodes": {
"title": "Taxonomy Codes",
"description": "The Taxonomy Codes selected from the DEI Taxonomies. The value for these codes should be drawn from the Taxonomy Codes codelist.",
"type": "array",
"items": {
"type": "string",
"codelist": "taxonomyCodes.csv",
"openCodelist": false
},
"uniqueItems": true
},
"livedExperience": {
"uniqueItems": true
},
"additionalDetails": {
"type": "string",
"title": "Additional Details",
"description": "A free text field to include any additional details or rationales that may be important to this context."
},
"response": {
"type": "object",
"title": "DEI Response",
"description": "A response to a DEI Application area, containing information such as the taxonomy codes selected and any lived experience or geography responses.",
"properties": {
"taxonomyCodes": {
"title": "Taxonomy Codes",
"description": "The Taxonomy Codes selected from the DEI Taxonomies. The value for these codes should be drawn from the Taxonomy Codes codelist.",
"type": "array",
"items": {
"type": "string",
"title": "Lived Experience",
"description": "A free text description of other types of lived experience that is not drawn from the Taxonomy."
"codelist": "taxonomyCodes.csv",
"openCodelist": false
},
"geography": {
"type": "string",
"title": "Geography",
"description": "A free text description that is not drawn from a vocabulary but instead relates to a particular geographical area."
}
"uniqueItems": true
},
"livedExperience": {
"type": "string",
"title": "Lived Experience",
"description": "A free text description of other types of lived experience that is not drawn from the Taxonomy."
},
"geography": {
"type": "string",
"title": "Geography",
"description": "A free text description that is not drawn from a vocabulary but instead relates to a particular geographical area."
}
}
}
Expand Down Expand Up @@ -93,13 +85,29 @@
"description": "The purposes of collecting this data."
},
"leadership": {
"$ref": "#/definitions/DeiApplicationArea"
"type": "object",
"title": "Leadership",
"description": "Description here",
"properties": {
"$ref": "#/definitions/DeiApplicationArea"
}
},
"mission": {
"$ref": "#/definitions/DeiApplicationArea"
"type": "object",
"title": "Mission",
"description": "Description here",
"properties": {
"$ref": "#/definitions/DeiApplicationArea"
}

},
"project": {
"$ref": "#/definitions/DeiApplicationArea"
"type": "object",
"title": "Project",
"description": "Description here",
"properties": {
"$ref": "#/definitions/DeiApplicationArea"
}
}
}
}
Expand Down

0 comments on commit f114557

Please sign in to comment.