Skip to content

Commit

Permalink
22*1919 Initialize 22-1919 form and add full name to the definitions …
Browse files Browse the repository at this point in the history
…section.
  • Loading branch information
GcioNapoleon committed Mar 4, 2025
1 parent fb18fae commit 358cc26
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
42 changes: 42 additions & 0 deletions dist/22-1919-schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "CONFLICTING INTERESTS CERTIFICATION FOR PROPRIETARY SCHOOL",
"type": "object",
"definitions": {
"fullName": {
"type": "object",
"properties": {
"first": {
"type": "string",
"minLength": 1,
"maxLength": 30,
"pattern": "^.*\\S.*"
},
"middle": {
"type": "string",
"maxLength": 30
},
"last": {
"type": "string",
"minLength": 1,
"maxLength": 30,
"pattern": "^.*\\S.*"
},
"suffix": {
"type": "string",
"enum": [
"Jr.",
"Sr.",
"II",
"III",
"IV"
]
}
},
"required": [
"first",
"last"
]
}
}
}
25 changes: 25 additions & 0 deletions src/schemas/22-1919/schema.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import definitions from '../../common/definitions';

const schema = {
$schema: 'http://json-schema.org/draft-04/schema#',
title: 'CONFLICTING INTERESTS CERTIFICATION FOR PROPRIETARY SCHOOL',
type: 'object',
definitions: {
fullName: {
...definitions.fullName,
properties: {
...definitions.fullName.properties,
first: {
...definitions.fullName.properties.first,
...definitions.rejectOnlyWhitespace,
},
last: {
...definitions.fullName.properties.last,
...definitions.rejectOnlyWhitespace,
},
},
},
},
};

export default schema;

0 comments on commit 358cc26

Please sign in to comment.