Skip to content

Commit

Permalink
API-25979-post-schema-docs (#12462)
Browse files Browse the repository at this point in the history
* Remove schema endpoint. Adds schema to post endpoint. Changes description.

* Rubocop

* WIP

* Modifies request.json and example.json

* Adds schema to 200 response

* Modifies example and request body for 526

* updates example and request

* removes unused

* v2 changes

* order to match form

* updates OAS

* update to string

---------

Co-authored-by: FonzMP <fonzmp@gmail.com>
  • Loading branch information
stiehlrod and FonzMP authored Apr 25, 2023
1 parent f640fb3 commit 4c991c1
Show file tree
Hide file tree
Showing 9 changed files with 5,070 additions and 2,202 deletions.
3,437 changes: 2,369 additions & 1,068 deletions modules/claims_api/app/swagger/claims_api/v2/dev/swagger.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@
"currentPhaseBack": false,
"latestPhaseType": "COMPLETE",
"previousPhases": {
"phase1CompleteDate": "2017-10-18"
"phase7CompleteDate": "2017-10-18"
}
},
"claimType": "Compensation",
Expand Down
1,082 changes: 0 additions & 1,082 deletions modules/claims_api/config/schemas/v2/526.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
{
"claimantCertification": true,
"claimProcessType": "STANDARD_CLAIM_PROCESS",
"claimDate": "2020-12-18",
"veteranIdentification": {
"mailingAddress": {
"numberAndStreet": "1234 Couch Street",
"apartmentOrUnitNumber": "Apt. 22",
"city": "Portland",
"country": "USA",
"zipFirstFive": "12345",
"zipLastFour": "6789",
"state": "OR"
},
"currentlyVAEmployee": false,
"serviceNumber": "123456789",
"emailAddress": {
"email": "claimant@example.com",
"agreeToEmailRelatedToClaim": true
},
"veteranNumber": {
"telephone": "555-5555",
"internationalTelephone": "555-5555"
},
"vaFileNumber": "12345678"
},
"changeOfAddress": {
"country": "USA",
"type": "INTERNATIONAL",
"addressLine1": "1234 Couch Street",
"dates": {
"beginningDate": "2018-11-31",
"endingDate": "2019-07-11"
},
"typeOfAddressChange": "Permanent",
"numberAndStreet": "1234 Couch Street",
"apartmentOrUnitNumber": "Apt. 22",
"city": "Portland",
"zipFirstFive": "12345",
"zipLastFour": "1234",
"state": "OR"
},
"homeless": {
"pointOfContact": "Jane Doe",
"pointOfContactNumber": "123-456-7890",
"currentlyHomeless": {
"homelessSituationOptions": "FLEEING_CURRENT_RESIDENCE",
"otherDescription": ""
},
"riskOfBecomingHomeless": {
"livingSituationOptions": "other living situation",
"otherDescription": ""
}
},
"toxicExposure": {
"gulfWarHazard": {
"servedInGulfWarHazardLocations": true,
"serviceDates": {
"startDate": "1999-07-21",
"endDate": "2005-01-21"
}
},
"herbicideHazardService": {
"servedInHerbicideHazardLocations": true,
"otherLocationsServed": "Guam",
"serviceDates": {
"startDate": "2002-03-07",
"endDate": "2004-10-31"
}
},
"additionalHazardExposures": {
"additionalExposures": "ASBESTOS",
"specifiyOtherExposures": "",
"exposureDates": {
"startDate": "2011-07-30",
"endDate": "2013-10-03"
}
},
"multipleExposures": {
"exposureDates": {
"startDate": "2012-12-09",
"endDate": "2013-07-27"
},
"exposureLocation": "Guam",
"hazardExposedTo": "RADIATION"
}
},
"disabilities": [
{
"disabilityActionType": "REOPEN",
"name": "PTSD (post traumatic stress disorder)",
"classificationCode": "249470",
"serviceRelevance": "Heavy equipment operator in service.",
"approximateDate": "2019-11-04",
"ratedDisabilityId": "1100583",
"diagnosticCode": 9999,
"secondaryDisabilities": [
{
"name": "PTSD personal trauma",
"disabilityActionType": "SECONDARY",
"serviceRelevance": "Caused by a service-connected disability\\nLengthy description",
"classificationCode": "249470",
"approximateDate": "2018-01-03",
"exposureOrEventOrInjury": ""
}
],
"isRelatedToToxicExposure": true,
"exposureOrEventOrInjury": ""
}
],
"treatments": [
{

"center": {
"name": "Private Facility 2",
"state": "CO",
"city": "Pueblo"
},
"startDate": "2014-03-07",
"treatedDisabilityNames": "PTSD (post traumatic stress disorder)"
},
{
"center": {
"name": "Private Facility 3",
"state": "WA",
"city": "Seattle"
},
"startDate": null,
"treatedDisabilityNames": "PTSD (post traumatic stress disorder)"
}
],
"serviceInformation": {
"servicePeriods": [
{
"serviceBranch": "Public Health Service",
"activeDutyBeginDate": "2015-11-14",
"activeDutyEndDate": "2018-11-30",
"serviceComponent": "Active",
"separationLocationCode": "V01D"
}
],
"confinements": {
"approximateBeginDate": "2016-11-06",
"approximateEndDate": "2016-11-09"
},
"reservesNationalGuardService": {
"obligationTermOfServiceFromDate": "2016-11-24",
"obligationTermOfServiceToDate": "2017-11-17",
"unitName": "DonkeyPants",
"component": "National Guard",
"title10Activation": {
"anticipatedSeparationDate": "2017-10-03",
"title10ActivationDate": "2018-02-11"
},
"unitPhone": {
"areaCode": "123",
"phoneNumber": "456-7890"
},
"receivingInactiveDutyTrainingPay": true
},
"alternateNames": [
{
"firstName": "John",
"lastName": "Jacob",
"middleName": "Jingleheimer-Schmidt"
}
],
"servedInActiveCombatSince911": false
},
"servicePay": {
"favorTrainingPay": true,
"favorMilitaryRetiredPay": false,
"receivingMilitaryRetiredPay": false,
"futureMilitaryRetiredPay": true,
"futureMilitaryRetiredPayExplanation": "",
"militaryRetiredPay": {
"branchOfService": "Army",
"monthlyAmount": 840.75
},
"retiredStatus": [],
"receivedSeparationOrSeverancePay": false,
"separationSeverancePay": {
"datePaymentReceived": "2018-07-31",
"branchOfService": "Naval Academy",
"preTaxAmountReceived": 379.25
}
},
"directDeposit": {
"accountType": "CHECKING",
"accountNumber": "123456789",
"routingNumber": "123456789",
"financialInstituteName": "Chase",
"noAccount": false
}
}
Loading

0 comments on commit 4c991c1

Please sign in to comment.