Skip to content

Commit

Permalink
Refactor loan history schema.
Browse files Browse the repository at this point in the history
See department-of-veterans-affairs/vets-json-schema#748. After updating vets-json-schema to include the changes to the loan history form, we can remove a little bit of hard-coded code.
  • Loading branch information
data-doge committed Feb 13, 2023
1 parent 267f0cb commit b320a5c
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions src/applications/lgy/coe/form/config/chapters/loans/loanHistory.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
import monthYearRangeUI from 'platform/forms-system/src/js/definitions/monthYearRange';
import { states } from 'platform/forms/address';

// import { loanHistory } from '../../schemaImports';
import { loanHistory } from '../../schemaImports';
import LoanReviewField from '../../../components/LoanReviewField';
import text from '../../../content/loanHistory';
import {
Expand Down Expand Up @@ -73,21 +73,9 @@ export const schema = {
minItems: 1,
items: {
type: 'object',
properties: {
dateRange: {
$ref: '#/definitions/dateRange',
},
propertyAddress: {
$ref: '#/definitions/loanAddress',
},
vaLoanNumber: {
$ref: '#/definitions/loanNumber',
},
propertyOwned: {
type: 'boolean',
},
properties: Object.assign(loanHistory.properties.items.properties, {
intent: LOAN_INTENT_SCHEMA,
},
}),
},
},
},
Expand Down

0 comments on commit b320a5c

Please sign in to comment.