Skip to content

Commit

Permalink
Vfep 603 repush (#773)
Browse files Browse the repository at this point in the history
* #VFEP-603 #comment replaced chapter33 value with chapter33Post911 and chapter33FryScholarship in the benefit definition for schema 22-1995

* #VFEP-603 #comment updated unit test to account for change in benefit selection of form 1995
  • Loading branch information
jsimonVA authored May 24, 2023
1 parent 7cb8e89 commit bf2d274
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion dist/22-1995-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,8 @@
"benefit": {
"type": "string",
"enum": [
"chapter33",
"chapter33Post911",
"chapter33FryScholarship",
"chapter30",
"chapter1606",
"transferOfEntitlement",
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.26.9",
"version": "20.26.10",
"repository": {
"type": "git",
"url": "git+https://github.com/department-of-veterans-affairs/vets-json-schema.git"
Expand Down
2 changes: 1 addition & 1 deletion src/schemas/22-1995/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const schema = {
},
benefit: {
type: 'string',
enum: ['chapter33', 'chapter30', 'chapter1606', 'transferOfEntitlement', 'chapter32'],
enum: ['chapter33Post911', 'chapter33FryScholarship', 'chapter30', 'chapter1606', 'transferOfEntitlement', 'chapter32'],
},
educationType: {
$ref: '#/definitions/educationType',
Expand Down
2 changes: 1 addition & 1 deletion test/schemas/22-1995/schema.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('change of program json schema', () => {
});

schemaTestHelper.testValidAndInvalid('benefit', {
valid: ['chapter33'],
valid: ['chapter33FryScholarship'],
invalid: ['foo']
});

Expand Down

0 comments on commit bf2d274

Please sign in to comment.