Skip to content

Commit

Permalink
#VFEP-660 #comment Guardian and high school questions definitions to …
Browse files Browse the repository at this point in the history
…22-1990 schema (#784)
  • Loading branch information
jsimonVA authored Jul 13, 2023
1 parent 59e8a7f commit 7ffea32
Show file tree
Hide file tree
Showing 4 changed files with 4,105 additions and 1 deletion.
41 changes: 41 additions & 0 deletions dist/22-1990-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,47 @@
"privacyAgreementAccepted": {
"$ref": "#/definitions/privacyAgreementAccepted"
},
"minorHighSchoolQuestions": {
"type": "object",
"properties": {
"minorHighSchoolQuestion": {
"type": "boolean"
},
"highSchoolGedGradDate": {
"$ref": "#/definitions/date"
},
"highSchoolGedExpectedGradDate": {
"$ref": "#/definitions/date"
}
}
},
"minorQuestions": {
"type": "object",
"properties": {
"guardianFirstName": {
"type": "string"
},
"guardianMiddleName": {
"type": "string"
},
"guardianLastName": {
"type": "string"
},
"guardianAddress": {
"$ref": "#/definitions/address"
},
"guardianMobilePhone": {
"$ref": "#/definitions/usaPhone"
},
"guardianHomePhone": {
"$ref": "#/definitions/usaPhone"
},
"guardianEmail": {
"type": "string",
"format": "email"
}
}
},
"toursOfDuty": {
"$ref": "#/definitions/toursOfDuty"
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vets-json-schema",
"version": "20.27.0",
"version": "20.27.1",
"repository": {
"type": "git",
"url": "git+https://github.com/department-of-veterans-affairs/vets-json-schema.git"
Expand Down
41 changes: 41 additions & 0 deletions src/schemas/22-1990/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,47 @@ const schema = {
privacyAgreementAccepted: {
$ref: '#/definitions/privacyAgreementAccepted',
},
minorHighSchoolQuestions: {
type: 'object',
properties: {
minorHighSchoolQuestion: {
type: 'boolean',
},
highSchoolGedGradDate: {
$ref: '#/definitions/date',
},
highSchoolGedExpectedGradDate: {
$ref: '#/definitions/date',
},
},
},
minorQuestions: {
type: 'object',
properties: {
guardianFirstName: {
type: 'string',
},
guardianMiddleName: {
type: 'string',
},
guardianLastName: {
type: 'string',
},
guardianAddress: {
$ref: '#/definitions/address',
},
guardianMobilePhone: {
$ref: '#/definitions/usaPhone',
},
guardianHomePhone: {
$ref: '#/definitions/usaPhone',
},
guardianEmail: {
type: 'string',
format: 'email',
},
},
},
},
required: ['privacyAgreementAccepted', 'veteranFullName'],
};
Expand Down
Loading

0 comments on commit 7ffea32

Please sign in to comment.