Skip to content

Commit

Permalink
Restored proper object defintion in DeiApplicationArea since compilet…
Browse files Browse the repository at this point in the history
…ojsonschema allows overriding of title which is cleaner
  • Loading branch information
Matt Marshall committed Jan 8, 2024
1 parent f114557 commit b9f6428
Showing 1 changed file with 64 additions and 69 deletions.
133 changes: 64 additions & 69 deletions schema/360-giving-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,61 +2,66 @@
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
"DeiApplicationArea": {
"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": "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.",
"properties": {
"askedStatus": {
"type": "string",
"codelist": "availableOptions.csv",
"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
},
"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": {
"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": "Lived Experience",
"description": "A free text description of other types of lived experience that is not drawn from the Taxonomy."
"codelist": "availableOptions.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
},
"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": {
"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 @@ -85,29 +90,19 @@
"description": "The purposes of collecting this data."
},
"leadership": {
"type": "object",
"title": "Leadership",
"description": "Description here",
"properties": {
"$ref": "#/definitions/DeiApplicationArea"
}
"title": "Leadership",
"description": "A DEI application area used to collect information about whether the leadership question was asked, responded to, and additional information. It also contains the response information under the Response fields.",
"$ref": "#/definitions/DeiApplicationArea"
},
"mission": {
"type": "object",
"title": "Mission",
"description": "Description here",
"properties": {
"$ref": "#/definitions/DeiApplicationArea"
}

"title": "Mission",
"description": "A DEI application area used to collect information about whether the mission question was asked, responded to, and additional information. It also contains the response information under the Response fields.",
"$ref": "#/definitions/DeiApplicationArea"
},
"project": {
"type": "object",
"title": "Project",
"description": "Description here",
"properties": {
"$ref": "#/definitions/DeiApplicationArea"
}
"title": "Project",
"description": "A DEI application area used to collect information about whether the project question was asked, responded to, and additional information. It also contains the response information under the Response fields.",
"$ref": "#/definitions/DeiApplicationArea"
}
}
}
Expand Down

0 comments on commit b9f6428

Please sign in to comment.