Closed matelau closed 1 month ago
does anyone remember why we used TS files in the first place? this is much cleaner
I'm not sure, maybe @oyamauchi knows?
Could you just make sure (no need to write a test for it, I think) that if you change the
"program"
value of an incentive to a nonexistent program, the schema validation fails?
Looks like the validation is working!
Convert Program TS files to JSON. Update script to generate JSON from spreadsheet data. This is done to make the data files more consistent which will aid us in how we integrate incentive admin data modifications back into the API. See: The Mini Brief for more details.
Links
Changes
Test Plan
yarn ts-node scripts/generate-misc-state-data.ts [TWO CHAR STATE CODE]
and verify correspondingstate/programs.json
file is created.yarn dev
http://localhost:3000/api/v1/calculator?zip=89015&include_beta_states=true&owner_status=homeowner&household_income=2000&tax_filing=single&household_size=1
Next steps