-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DR-70429] remove timezone enums from appeals schemas #823
[DR-70429] remove timezone enums from appeals schemas #823
Conversation
{ "$ref": "#/definitions/timezone" } | ||
] | ||
} | ||
"timezone": { "type": "string" } | ||
}, | ||
"required": ["homeless", "phone", "email"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to add "timezone"
to this required field?
"$ref": "#/definitions/timezone" | ||
} | ||
] | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add "timezone" to required?
"$ref": "#/definitions/timezone" | ||
} | ||
] | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add "timezone" to required?
"$ref": "#/definitions/timezone" | ||
} | ||
] | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add "timezone" to required?
@@ -196,753 +196,7 @@ | |||
}, | |||
"timezone": { | |||
"type": "string", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add "timezone" to required? Not sure where the required field is...
@Mottie I didn't feel confident enough in how the schemas are used to validate to make anything required that wasn't required before 🥴 but if you're sure of where I should be adding required values, I can go ahead and do that. I added a note in a few of the files but to summarize what I found — I tried to see if we could implement test specs for these schemas but they're using a structural version that isn't supported by the testing tool we're using for other specs. |
New schema
We're removing the enum for timezones in the Decision Reviews schemas (SC, HLR, NOD) and letting Lighthouse take care of validating the proper set of timezones so that we don't have to manage them here and on the Lighthouse side. It makes it much easier for us to maintain and reduces errors that arise from an enum being out of date (i.e. the enums defined here... see ticket below for more details about the issues we're seeing)
Package.json version bumped
DR | Update timezone list for SC, HLR, and NOD in
vets-json-schema
va.gov-team#70429Pull Requests to update the schema in related repositories
After you've merged your changes to vets-json-schema you'll need to make PR's to vets-website and vets-api. Please link them here.