From bf2d2740c696fbc58269c2e0b64cc480d053af4b Mon Sep 17 00:00:00 2001 From: jsimonVA <88905347+jsimonVA@users.noreply.github.com> Date: Wed, 24 May 2023 16:06:10 -0500 Subject: [PATCH] Vfep 603 repush (#773) * #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 --- dist/22-1995-schema.json | 3 ++- package.json | 2 +- src/schemas/22-1995/schema.js | 2 +- test/schemas/22-1995/schema.spec.js | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/dist/22-1995-schema.json b/dist/22-1995-schema.json index 5b08c19c8..ee093dcc2 100644 --- a/dist/22-1995-schema.json +++ b/dist/22-1995-schema.json @@ -395,7 +395,8 @@ "benefit": { "type": "string", "enum": [ - "chapter33", + "chapter33Post911", + "chapter33FryScholarship", "chapter30", "chapter1606", "transferOfEntitlement", diff --git a/package.json b/package.json index 306440220..c4f89abf8 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/src/schemas/22-1995/schema.js b/src/schemas/22-1995/schema.js index c1f29b8d5..37bf46109 100644 --- a/src/schemas/22-1995/schema.js +++ b/src/schemas/22-1995/schema.js @@ -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', diff --git a/test/schemas/22-1995/schema.spec.js b/test/schemas/22-1995/schema.spec.js index a81a78127..3ec0cdd2d 100644 --- a/test/schemas/22-1995/schema.spec.js +++ b/test/schemas/22-1995/schema.spec.js @@ -39,7 +39,7 @@ describe('change of program json schema', () => { }); schemaTestHelper.testValidAndInvalid('benefit', { - valid: ['chapter33'], + valid: ['chapter33FryScholarship'], invalid: ['foo'] });