Skip to content

Commit

Permalink
cont. updating mobile specs to use committee gem (#19148)
Browse files Browse the repository at this point in the history
  • Loading branch information
aherzberg authored Nov 4, 2024
1 parent 05ea997 commit 7269442
Show file tree
Hide file tree
Showing 20 changed files with 393 additions and 180 deletions.
277 changes: 194 additions & 83 deletions modules/mobile/docs/openapi.json

Large diffs are not rendered by default.

15 changes: 10 additions & 5 deletions modules/mobile/docs/schemas/Address.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ properties:
type: string
example: "1493 Martin Luther King Rd"
addressLine2:
type: string, null
type: string
nullable: true
addressLine3:
type: string, null
type: string
nullable: true
addressPou:
type: string
enum: [ "RESIDENCE/CHOICE", "CORRESPONDENCE" ]
Expand All @@ -40,10 +42,12 @@ properties:
type: string
example: "US"
internationalPostalCode:
type: string, null
type: string
nullable: true
example: null
province:
type: string, null
type: string
nullable: true
example: null
stateCode:
type: string
Expand All @@ -52,5 +56,6 @@ properties:
type: string
example: "97062"
zipCodeSuffix:
type: string, null
type: string
nullable: true
example: "1234"
21 changes: 14 additions & 7 deletions modules/mobile/docs/schemas/AddressCreate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ properties:
type: string
example: "1493 Martin Luther King Rd"
addressLine2:
type: string, null
type: string
nullable: true
addressLine3:
type: string, null
type: string
nullable: true
addressPou:
type: string
enum: [ "RESIDENCE/CHOICE", "CORRESPONDENCE" ]
Expand All @@ -51,17 +53,22 @@ properties:
type: string
example: "USA"
internationalPostalCode:
type: string, null
type: string
nullable: true
example: null
province:
type: string, null
type: string
nullable: true
example: null
stateCode:
type: string, null
type: string
nullable: true
example: "NY"
zipCode:
type: string, null
type: string
nullable: true
example: "97062"
zipCodeSuffix:
type: string, null
type: string
nullable: true
example: "1234"
15 changes: 10 additions & 5 deletions modules/mobile/docs/schemas/AddressUpdate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ properties:
type: string
example: "1493 Martin Luther King Rd"
addressLine2:
type: string, null
type: string
nullable: true
addressLine3:
type: string, null
type: string
nullable: true
addressPou:
type: string
enum: [ "RESIDENCE/CHOICE", "CORRESPONDENCE" ]
Expand All @@ -52,10 +54,12 @@ properties:
type: string
example: "US"
internationalPostalCode:
type: string, null
type: string
nullable: true
example: null
province:
type: string, null
type: string
nullable: true
example: null
stateCode:
type: string
Expand All @@ -64,5 +68,6 @@ properties:
type: string
example: "97062"
zipCodeSuffix:
type: string, null
type: string
nullable: true
example: "1234"
3 changes: 2 additions & 1 deletion modules/mobile/docs/schemas/Appeal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ properties:
- type
- updated
properties:
appealsIds:
appealIds:
type: array
items:
type: string
Expand All @@ -60,6 +60,7 @@ properties:
type: string
docket:
type: object
nullable: true
events:
type: array
items:
Expand Down
6 changes: 5 additions & 1 deletion modules/mobile/docs/schemas/AppealIssue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ properties:
description:
type: string
diagnosticCode:
type: string, null
type: string
nullable: true
example: 8100
lastAction:
type: string
nullable: true
enum:
- field_grant
- withdrawn
Expand All @@ -22,3 +24,5 @@ properties:
- Deferred
date:
type: string
nullable: true

42 changes: 34 additions & 8 deletions modules/mobile/docs/schemas/AppointmentCheckin.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,38 @@
type: object
additionalProperties: false
required:
- code
- message
- data
properties:
code:
type: string
example: 'check-in-success'
message:
type: string
example: 'Check-In successful'
data:
type: object
additionalProperties: false
required:
- type
- id
- attributes
properties:
type:
type: string
example: "check_in"
id:
type: string
example: "75db6a5c-84ae-4ca4-bba2-ef4c41d563ab"
description: user uuid
attributes:
type: object
additionalProperties: false
required:
- id
- code
- message
properties:
id:
type: string
example: "75db6a5c-84ae-4ca4-bba2-ef4c41d563ab"
description: user uuid
code:
type: string
example: 'check-in-success'
message:
type: string
example: 'Check-In successful'
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ properties:
type: string
example: 'Unsuccessful Operation'
detail:
type: array
type: [array, string]
items:
type: object
additionalProperties: false
Expand Down
9 changes: 6 additions & 3 deletions modules/mobile/docs/schemas/Claim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ properties:
type: string
example: "2017-12-08"
minEstDate:
type: string, null
type: string
nullable: true
example: "2017-12-08"
maxEstDate:
type: string, null
type: string
nullable: true
example: "2017-12-08"
open:
type: boolean
Expand All @@ -67,7 +69,8 @@ properties:
items:
$ref: "./claimEventTimeline.yml"
phaseChangeDate:
type: string, null
type: string
nullable: true
example: "2017-12-08"
vaRepresentative:
type: string
Expand Down
9 changes: 6 additions & 3 deletions modules/mobile/docs/schemas/ClaimsAndAppeals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,18 @@ properties:
description: decision letter will be available from endpoint /v0/claims/decision-letters if true
example: "true"
phase:
type: integer, null
type: integer
nullable: true
description: The phase of processing the claim is in. This does not apply to appeals. The integers used map to the phases as `1 => CLAIM_RECEIVED, 2 => UNDER_REVIEW, 3 => GATHERING_OF_EVIDENCE, 4 => REVIEW_OF_EVIDENCE, 5 => PREPARATION_FOR_DECISION, 6 => PENDING_DECISION_APPROVAL, 7 => PREPARATION_FOR_NOTIFICATION, 8 => COMPLETE`
example: 1
documentsNeeded:
type: boolean, null
type: boolean
nullable: true
description: Documents are still needed.
example: "true"
developmentLetterSent:
type: boolean, null
type: boolean
nullable: true
description: Development letter has been sent.
example: "true"
claimTypeCode:
Expand Down
30 changes: 20 additions & 10 deletions modules/mobile/docs/schemas/DecisionLetterRecord.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,40 +30,50 @@ properties:
- uploadDate
properties:
seriesId:
type: string, null
type: string
nullable: true
example: "{EC1B5F0C-E3FB-4A41-B93F-E1A88D549CDF}"
version:
type: string, null
type: string
nullable: true
example: "1"
typeDescription:
type: string, null
type: string
nullable: true
example: "Notification Letter (e.g. VA 20-8993, VA 21-0290, PCGL)"
typeId:
type: string, null
type: string
nullable: true
example: "184"
docType:
type: string, null
type: string
nullable: true
example: "184"
subject:
type: string, null
type: string
nullable: true
example: null
receivedAt:
type: date
example: "2022-09-22"
source:
type: string, null
type: string
nullable: true
example: "VBMS"
mimeType:
type: string, null
type: string
nullable: true
example: "application/pdf"
altDocTypes:
type: string, null
type: string
nullable: true
example: ""
restricted:
type: boolean
example: false
uploadDate:
type: date, null
type: date
nullable: true
example: "2022-09-23"


6 changes: 4 additions & 2 deletions modules/mobile/docs/schemas/PaymentHistory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ properties:
type: string
example: "Compensation & Pension - Recurring"
bank:
type: string, null
type: string
nullable: true
example: "PACIFIC PREMIER BANK"
account:
type: string, null
type: string
nullable: true
example: "************6464"
meta:
type: object
Expand Down
Loading

0 comments on commit 7269442

Please sign in to comment.