department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
284 stars 206 forks source link

Schema for all Toxic Exposure fields to Form526 vets JSON schema #83945

Open christinec-fftc opened 6 months ago

christinec-fftc commented 6 months ago

Issue Description

Add TE fields to Form526 validation (vets JSON schema) schema Scope of this ticket - The contract for all remaining fields being added as part of Toxic Exposure initiative

Current state - FE and BE use JSONSchema to validate New state - FE needs to point to patterns to validate to decouple the JSON schema from FE changes


Notes

We added a lot of the validation already with the XX date issue. PR for vets-json-schema here We can use this as an example for the mapped keys.

fields that need to be added

conditions # *can we do this? these are dynamic keys
gulfWar1990  # mapped keys
herbicide # mapped keys
otherHerbicideLocations.description  # front-end regex
otherExposures # mapped keys
specifyOtherExposures.description # front-end regex

Tasks

Acceptance Criteria


Related links

christinec-fftc commented 6 months ago

@sethdarragile6 please help us prep this story for refinement

pacerwow commented 5 months ago

Is this launch blocking?

aurora-a-k-a-lightning commented 1 month ago

We added these fields to vets-json-schema already. We now just need to put in the difference.