Skip to content

Add JSON Schema for VA Form 10-0998#4

Draft
voidspooks wants to merge 1 commit into
masterfrom
optimus/10-0998-schema-20260427T173609Z-3eae
Draft

Add JSON Schema for VA Form 10-0998#4
voidspooks wants to merge 1 commit into
masterfrom
optimus/10-0998-schema-20260427T173609Z-3eae

Conversation

@voidspooks

Copy link
Copy Markdown
Owner

⚠️ AI-Generated PR — This pull request was automatically generated by Optimus. All code requires human review and testing before merging.

New schema — VA Form 10-0998

Summary

This schema covers VA Form 10-0998, the VA Health Care Benefits Decision Notice appeal form. The schema defines structured validation for claimant-driven appeal submissions, with the following key characteristics:

  • Claimant type routing: A claimantType enum (veteran-beneficiary-payer, provider-not-under-contract, provider-under-contract) drives all conditional screen routing in the form experience. This field is central to the schema's conditional logic and should be treated as effectively required.
  • Date definitions: Two reusable date definitions are provided — date (ISO 8601, YYYY-MM-DD) and nullableDate (nullable ISO 8601), both using JSON Schema format: date for validation.
  • Definition references: Shared field types are composed via $ref using a buildDefinitionReference helper, consistent with patterns used across the vets-json-schema repository.
  • Strict object shape: additionalProperties: false is enforced at the root level, ensuring only declared fields are accepted.

Files

  • src/schemas/10-0998/schema.js

Notes for reviewer

  • Please ensure you have incremented the version in package.json
  • Please add backend-review-group as a reviewer
  • The claimantType field drives conditional routing for all three claimant paths; please verify that any conditional required fields downstream of this value are correctly gated in the schema or documented as handled at the application layer.
  • nullableDate allows null in addition to a valid date string — confirm this is intentional for optional date fields (e.g., decision notice date may be unknown at submission time).
  • The schema uses draft-04 — confirm this is consistent with the consuming application's validator version before merging.
  • No required array is visible in the artifact summary snippet; please confirm the full schema includes required field declarations at the root and nested object levels as appropriate.

Pull Requests to update the schema in related repositories

  • vets-api: pending
  • vets-website: pending

Generated by Optimus (https://github.com/aquia-inc/optimus).
All files require human review before merging.

Files:
- src/schemas/10-0998/schema.js
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.

1 participant