From b3a613bbc389de53a39fc40c5a717308440d0910 Mon Sep 17 00:00:00 2001 From: Andrew Rodiek <25368370+Dr-Pongo@users.noreply.github.com> Date: Mon, 2 Dec 2024 12:34:24 -0500 Subject: [PATCH] Add schema for Dispute Debt (#961) --- dist/DISPUTE-DEBT-schema.json | 539 +++++++++++++++++++++++++++++ package.json | 2 +- src/schemas/DISPUTE-DEBT/schema.js | 33 ++ 3 files changed, 573 insertions(+), 1 deletion(-) create mode 100644 dist/DISPUTE-DEBT-schema.json create mode 100644 src/schemas/DISPUTE-DEBT/schema.js diff --git a/dist/DISPUTE-DEBT-schema.json b/dist/DISPUTE-DEBT-schema.json new file mode 100644 index 00000000..581b0213 --- /dev/null +++ b/dist/DISPUTE-DEBT-schema.json @@ -0,0 +1,539 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "DISPUTE DEBT", + "type": "object", + "properties": { + "contactInformation": { + "type": "object", + "email": { + "type": "string", + "maxLength": 256, + "format": "email" + }, + "address": { + "type": "object", + "properties": { + "isMilitary": { + "type": "boolean" + }, + "view:militaryBaseDescription": { + "type": "object", + "properties": {} + }, + "country": { + "type": "string", + "enum": [ + "USA", + "AFG", + "ALB", + "DZA", + "AND", + "AGO", + "AIA", + "ATA", + "ATG", + "ARG", + "ARM", + "ABW", + "AUS", + "AUT", + "AZE", + "BHS", + "BHR", + "BGD", + "BRB", + "BLR", + "BEL", + "BLZ", + "BEN", + "BMU", + "BTN", + "BOL", + "BIH", + "BWA", + "BVT", + "BRA", + "IOT", + "BRN", + "BGR", + "BFA", + "BDI", + "KHM", + "CMR", + "CAN", + "CPV", + "CYM", + "CAF", + "TCD", + "CHL", + "CHN", + "CXR", + "CCK", + "COL", + "COM", + "COG", + "COD", + "COK", + "CRI", + "CIV", + "HRV", + "CUB", + "CYP", + "CZE", + "DNK", + "DJI", + "DMA", + "DOM", + "ECU", + "EGY", + "SLV", + "GNQ", + "ERI", + "EST", + "ETH", + "FLK", + "FRO", + "FJI", + "FIN", + "FRA", + "GUF", + "PYF", + "ATF", + "GAB", + "GMB", + "GEO", + "DEU", + "GHA", + "GIB", + "GRC", + "GRL", + "GRD", + "GLP", + "GTM", + "GIN", + "GNB", + "GUY", + "HTI", + "HMD", + "HND", + "HKG", + "HUN", + "ISL", + "IND", + "IDN", + "IRN", + "IRQ", + "IRL", + "ISR", + "ITA", + "JAM", + "JPN", + "JOR", + "KAZ", + "KEN", + "KIR", + "PRK", + "KOR", + "KWT", + "KGZ", + "LAO", + "LVA", + "LBN", + "LSO", + "LBR", + "LBY", + "LIE", + "LTU", + "LUX", + "MAC", + "MKD", + "MDG", + "MWI", + "MYS", + "MDV", + "MLI", + "MLT", + "MTQ", + "MRT", + "MUS", + "MYT", + "MEX", + "FSM", + "MDA", + "MCO", + "MNG", + "MSR", + "MAR", + "MOZ", + "MMR", + "NAM", + "NRU", + "NPL", + "ANT", + "NLD", + "NCL", + "NZL", + "NIC", + "NER", + "NGA", + "NIU", + "NFK", + "NOR", + "OMN", + "PAK", + "PAN", + "PNG", + "PRY", + "PER", + "PHL", + "PCN", + "POL", + "PRT", + "QAT", + "REU", + "ROU", + "RUS", + "RWA", + "SHN", + "KNA", + "LCA", + "SPM", + "VCT", + "SMR", + "STP", + "SAU", + "SEN", + "SCG", + "SYC", + "SLE", + "SGP", + "SVK", + "SVN", + "SLB", + "SOM", + "ZAF", + "SGS", + "ESP", + "LKA", + "SDN", + "SUR", + "SWZ", + "SWE", + "CHE", + "SYR", + "TWN", + "TJK", + "TZA", + "THA", + "TLS", + "TGO", + "TKL", + "TON", + "TTO", + "TUN", + "TUR", + "TKM", + "TCA", + "TUV", + "UGA", + "UKR", + "ARE", + "GBR", + "URY", + "UZB", + "VUT", + "VAT", + "VEN", + "VNM", + "VGB", + "WLF", + "ESH", + "YEM", + "ZMB", + "ZWE" + ], + "enumNames": [ + "United States", + "Afghanistan", + "Albania", + "Algeria", + "Andorra", + "Angola", + "Anguilla", + "Antarctica", + "Antigua", + "Argentina", + "Armenia", + "Aruba", + "Australia", + "Austria", + "Azerbaijan", + "Bahamas", + "Bahrain", + "Bangladesh", + "Barbados", + "Belarus", + "Belgium", + "Belize", + "Benin", + "Bermuda", + "Bhutan", + "Bolivia", + "Bosnia", + "Botswana", + "Bouvet Island", + "Brazil", + "British Indian Ocean Territories", + "Brunei Darussalam", + "Bulgaria", + "Burkina Faso", + "Burundi", + "Cambodia", + "Cameroon", + "Canada", + "Cape Verde", + "Cayman", + "Central African Republic", + "Chad", + "Chile", + "China", + "Christmas Island", + "Cocos Islands", + "Colombia", + "Comoros", + "Congo", + "Democratic Republic of the Congo", + "Cook Islands", + "Costa Rica", + "Ivory Coast", + "Croatia", + "Cuba", + "Cyprus", + "Czech Republic", + "Denmark", + "Djibouti", + "Dominica", + "Dominican Republic", + "Ecuador", + "Egypt", + "El Salvador", + "Equatorial Guinea", + "Eritrea", + "Estonia", + "Ethiopia", + "Falkland Islands", + "Faroe Islands", + "Fiji", + "Finland", + "France", + "French Guiana", + "French Polynesia", + "French Southern Territories", + "Gabon", + "Gambia", + "Georgia", + "Germany", + "Ghana", + "Gibraltar", + "Greece", + "Greenland", + "Grenada", + "Guadeloupe", + "Guatemala", + "Guinea", + "Guinea-Bissau", + "Guyana", + "Haiti", + "Heard Island", + "Honduras", + "Hong Kong", + "Hungary", + "Iceland", + "India", + "Indonesia", + "Iran", + "Iraq", + "Ireland", + "Israel", + "Italy", + "Jamaica", + "Japan", + "Jordan", + "Kazakhstan", + "Kenya", + "Kiribati", + "North Korea", + "South Korea", + "Kuwait", + "Kyrgyzstan", + "Laos", + "Latvia", + "Lebanon", + "Lesotho", + "Liberia", + "Libya", + "Liechtenstein", + "Lithuania", + "Luxembourg", + "Macao", + "Macedonia", + "Madagascar", + "Malawi", + "Malaysia", + "Maldives", + "Mali", + "Malta", + "Martinique", + "Mauritania", + "Mauritius", + "Mayotte", + "Mexico", + "Micronesia", + "Moldova", + "Monaco", + "Mongolia", + "Montserrat", + "Morocco", + "Mozambique", + "Myanmar", + "Namibia", + "Nauru", + "Nepal", + "Netherlands Antilles", + "Netherlands", + "New Caledonia", + "New Zealand", + "Nicaragua", + "Niger", + "Nigeria", + "Niue", + "Norfolk", + "Norway", + "Oman", + "Pakistan", + "Panama", + "Papua New Guinea", + "Paraguay", + "Peru", + "Philippines", + "Pitcairn", + "Poland", + "Portugal", + "Qatar", + "Reunion", + "Romania", + "Russia", + "Rwanda", + "Saint Helena", + "Saint Kitts and Nevis", + "Saint Lucia", + "Saint Pierre and Miquelon", + "Saint Vincent and the Grenadines", + "San Marino", + "Sao Tome and Principe", + "Saudi Arabia", + "Senegal", + "Serbia", + "Seychelles", + "Sierra Leone", + "Singapore", + "Slovakia", + "Slovenia", + "Solomon Islands", + "Somalia", + "South Africa", + "South Georgia and the South Sandwich Islands", + "Spain", + "Sri Lanka", + "Sudan", + "Suriname", + "Swaziland", + "Sweden", + "Switzerland", + "Syrian Arab Republic", + "Taiwan", + "Tajikistan", + "Tanzania", + "Thailand", + "Timor-Leste", + "Togo", + "Tokelau", + "Tonga", + "Trinidad and Tobago", + "Tunisia", + "Turkey", + "Turkmenistan", + "Turks and Caicos Islands", + "Tuvalu", + "Uganda", + "Ukraine", + "United Arab Emirates", + "United Kingdom", + "Uruguay", + "Uzbekistan", + "Vanuatu", + "Vatican", + "Venezuela", + "Vietnam", + "British Virgin Islands", + "Wallis and Futuna", + "Western Sahara", + "Yemen", + "Zambia", + "Zimbabwe" + ] + }, + "street": { + "type": "string", + "minLength": 1, + "maxLength": 100 + }, + "street2": { + "type": "string", + "minLength": 1, + "maxLength": 100 + }, + "street3": { + "type": "string", + "minLength": 1, + "maxLength": 100 + }, + "city": { + "type": "string", + "minLength": 1, + "maxLength": 100 + }, + "state": { + "type": "string" + }, + "postalCode": { + "type": "string" + } + } + } + }, + "debtInformation": { + "type": "array", + "items": { + "type": "object", + "debt": { + "type": "string" + }, + "disputeReason": { + "type": "string" + }, + "supportStatement": { + "type": "string" + } + } + } + }, + "required": [ + "email", + "phoneNumber", + "address", + "debt", + "disputeReason", + "supportStatement" + ] +} diff --git a/package.json b/package.json index df546b11..aa572fa5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vets-json-schema", - "version": "24.5.7", + "version": "24.6.0", "license": "CC0-1.0", "repository": { "type": "git", diff --git a/src/schemas/DISPUTE-DEBT/schema.js b/src/schemas/DISPUTE-DEBT/schema.js new file mode 100644 index 00000000..d43cce3c --- /dev/null +++ b/src/schemas/DISPUTE-DEBT/schema.js @@ -0,0 +1,33 @@ +import definitions from '../../common/definitions'; + +const schema = { + $schema: 'http://json-schema.org/draft-04/schema#', + title: 'DISPUTE DEBT', + type: 'object', + properties: { + contactInformation: { + type: 'object', + email: definitions.email, + phoneNumber: definitions.phoneNumber, + address: definitions.profileAddress, + }, + debtInformation: { + type: 'array', + items: { + type: 'object', + debt: { + type: 'string', + }, + disputeReason: { + type: 'string', + }, + supportStatement: { + type: 'string', + }, + }, + }, + }, + required: ['email', 'phoneNumber', 'address', 'debt', 'disputeReason', 'supportStatement'], +}; + +export default schema;