Skip to content

Commit

Permalink
Add date signed
Browse files Browse the repository at this point in the history
  • Loading branch information
GovCIOLiz committed Feb 20, 2025
1 parent afcd538 commit 1521f03
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion dist/22-10215-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"certifyingOfficial",
"institutionDetails",
"programs",
"statementOfTruthSignature"
"statementOfTruthSignature",
"dateSigned"
],
"properties": {
"institutionDetails": {
Expand Down Expand Up @@ -99,6 +100,9 @@
},
"statementOfTruthSignature": {
"type": "string"
},
"dateSigned": {
"$ref": "#/definitions/date"
}
}
}
5 changes: 4 additions & 1 deletion src/schemas/22-10215/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const schema = {
type: 'object',
additionalProperties: false,
definitions: pickedDefinitions,
required: ['certifyingOfficial', 'institutionDetails', 'programs', 'statementOfTruthSignature'],
required: ['certifyingOfficial', 'institutionDetails', 'programs', 'statementOfTruthSignature', 'dateSigned'],
properties: {
institutionDetails: {
type: 'object',
Expand Down Expand Up @@ -82,6 +82,9 @@ const schema = {
statementOfTruthSignature: {
type: "string"
},
dateSigned: {
$ref: '#/definitions/date',
},
},
};

Expand Down
2 changes: 2 additions & 0 deletions test/schemas/22-10215/schema.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ describe('22-10215 Schema', () => {
'institutionDetails',
'programs',
'statementOfTruthSignature',
'dateSigned',
]);
expect(schema.properties.institutionDetails.required).to.deep.equal([
'institutionName',
Expand All @@ -158,6 +159,7 @@ describe('22-10215 Schema', () => {
]);
});

schemaTestHelper.testValidAndInvalid('certifyingOfficial', testData.institutionOfficial);
schemaTestHelper.testValidAndInvalid('institutionDetails', testData.institutionDetails);
schemaTestHelper.testValidAndInvalid('programs', testData.programs);
});

0 comments on commit 1521f03

Please sign in to comment.