Skip to content
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

Update the 2122 and 2122a schema #949

Merged
merged 13 commits into from
Nov 12, 2024
Merged

Conversation

opticbob
Copy link
Contributor

@opticbob opticbob commented Nov 1, 2024

New schema

This is an update to existing schemas for forms 21-22 and 21-22a.

Ticket: department-of-veterans-affairs/va.gov-team#93506

Please ensure you have incremented the version in package.json.

Pull 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.

Comment on lines +11 to +12
state_code: { type: 'string', minLength: 2, maxLength: 2 },
country: { type: 'string', minLength: 3, maxLength: 3 },
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I import enums of states and countries here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wrote a custom address object because the backend uses address_line1, 2, etc. Would it make more sense to use the existing hcaAddress object and change the data handling on the backend?

What do you think @cosu419 ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't think the state/country enums are necessary. hcaAddress was copied from another schema and can probably be replaced.

@opticbob opticbob marked this pull request as ready for review November 8, 2024 21:59
@opticbob opticbob requested review from a team as code owners November 8, 2024 21:59
Copy link
Contributor

@cosu419 cosu419 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@opticbob opticbob merged commit 00c3939 into master Nov 12, 2024
5 checks passed
@opticbob opticbob deleted the 93506-update-the-vets-json-schema branch November 12, 2024 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants