Skip to content

Commit

Permalink
Update API models
Browse files Browse the repository at this point in the history
  • Loading branch information
rossjones-moj committed Jan 14, 2025
1 parent e8491f4 commit cae752a
Show file tree
Hide file tree
Showing 6 changed files with 354 additions and 12 deletions.
61 changes: 59 additions & 2 deletions src/main/resources/static/_shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2072,7 +2072,7 @@ components:
status:
$ref: '#/components/schemas/ApplicationStatus'
latestStatusUpdate:
$ref: '#/components/schemas/LatestCas2StatusUpdate'
$ref: '#/components/schemas/LatestCas2v2StatusUpdate'
risks:
$ref: '#/components/schemas/PersonRisks'
hdcEligibilityDate:
Expand Down Expand Up @@ -2241,6 +2241,63 @@ components:
- personName
- crn
- nomsNumber
Cas2v2StatusUpdate:
type: object
properties:
id:
type: string
format: uuid
name:
type: string
example: 'moreInfoRequested'
label:
type: string
example: 'More information requested'
description:
type: string
example: 'More information about the application has been requested from the HMPPS user.'
updatedBy:
$ref: '#/components/schemas/Cas2v2User'
updatedAt:
type: string
format: date-time
statusUpdateDetails:
type: array
items:
$ref: '#/components/schemas/Cas2v2StatusUpdateDetail'
required:
- id
- name
- label
- description
Cas2v2StatusUpdateDetail:
type: object
properties:
id:
type: string
format: uuid
name:
type: string
example: 'moreInfoRequested'
label:
type: string
example: 'More information requested'
required:
- id
- name
- label
LatestCas2v2StatusUpdate:
type: object
properties:
statusId:
type: string
format: uuid
label:
type: string
example: 'More information requested'
required:
- statusId
- label
Cas2StatusUpdate:
type: object
properties:
Expand Down Expand Up @@ -2865,7 +2922,7 @@ components:
statusUpdates:
type: array
items:
$ref: '_shared.yml#/components/schemas/Cas2StatusUpdate'
$ref: '_shared.yml#/components/schemas/Cas2v2StatusUpdate'
required:
- id
UpdateCas2Assessment:
Expand Down
61 changes: 59 additions & 2 deletions src/main/resources/static/codegen/built-api-spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6373,7 +6373,7 @@ components:
status:
$ref: '#/components/schemas/ApplicationStatus'
latestStatusUpdate:
$ref: '#/components/schemas/LatestCas2StatusUpdate'
$ref: '#/components/schemas/LatestCas2v2StatusUpdate'
risks:
$ref: '#/components/schemas/PersonRisks'
hdcEligibilityDate:
Expand Down Expand Up @@ -6542,6 +6542,63 @@ components:
- personName
- crn
- nomsNumber
Cas2v2StatusUpdate:
type: object
properties:
id:
type: string
format: uuid
name:
type: string
example: 'moreInfoRequested'
label:
type: string
example: 'More information requested'
description:
type: string
example: 'More information about the application has been requested from the HMPPS user.'
updatedBy:
$ref: '#/components/schemas/Cas2v2User'
updatedAt:
type: string
format: date-time
statusUpdateDetails:
type: array
items:
$ref: '#/components/schemas/Cas2v2StatusUpdateDetail'
required:
- id
- name
- label
- description
Cas2v2StatusUpdateDetail:
type: object
properties:
id:
type: string
format: uuid
name:
type: string
example: 'moreInfoRequested'
label:
type: string
example: 'More information requested'
required:
- id
- name
- label
LatestCas2v2StatusUpdate:
type: object
properties:
statusId:
type: string
format: uuid
label:
type: string
example: 'More information requested'
required:
- statusId
- label
Cas2StatusUpdate:
type: object
properties:
Expand Down Expand Up @@ -7166,7 +7223,7 @@ components:
statusUpdates:
type: array
items:
$ref: '#/components/schemas/Cas2StatusUpdate'
$ref: '#/components/schemas/Cas2v2StatusUpdate'
required:
- id
UpdateCas2Assessment:
Expand Down
61 changes: 59 additions & 2 deletions src/main/resources/static/codegen/built-cas1-api-spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3294,7 +3294,7 @@ components:
status:
$ref: '#/components/schemas/ApplicationStatus'
latestStatusUpdate:
$ref: '#/components/schemas/LatestCas2StatusUpdate'
$ref: '#/components/schemas/LatestCas2v2StatusUpdate'
risks:
$ref: '#/components/schemas/PersonRisks'
hdcEligibilityDate:
Expand Down Expand Up @@ -3463,6 +3463,63 @@ components:
- personName
- crn
- nomsNumber
Cas2v2StatusUpdate:
type: object
properties:
id:
type: string
format: uuid
name:
type: string
example: 'moreInfoRequested'
label:
type: string
example: 'More information requested'
description:
type: string
example: 'More information about the application has been requested from the HMPPS user.'
updatedBy:
$ref: '#/components/schemas/Cas2v2User'
updatedAt:
type: string
format: date-time
statusUpdateDetails:
type: array
items:
$ref: '#/components/schemas/Cas2v2StatusUpdateDetail'
required:
- id
- name
- label
- description
Cas2v2StatusUpdateDetail:
type: object
properties:
id:
type: string
format: uuid
name:
type: string
example: 'moreInfoRequested'
label:
type: string
example: 'More information requested'
required:
- id
- name
- label
LatestCas2v2StatusUpdate:
type: object
properties:
statusId:
type: string
format: uuid
label:
type: string
example: 'More information requested'
required:
- statusId
- label
Cas2StatusUpdate:
type: object
properties:
Expand Down Expand Up @@ -4087,7 +4144,7 @@ components:
statusUpdates:
type: array
items:
$ref: '#/components/schemas/Cas2StatusUpdate'
$ref: '#/components/schemas/Cas2v2StatusUpdate'
required:
- id
UpdateCas2Assessment:
Expand Down
61 changes: 59 additions & 2 deletions src/main/resources/static/codegen/built-cas2-api-spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2663,7 +2663,7 @@ components:
status:
$ref: '#/components/schemas/ApplicationStatus'
latestStatusUpdate:
$ref: '#/components/schemas/LatestCas2StatusUpdate'
$ref: '#/components/schemas/LatestCas2v2StatusUpdate'
risks:
$ref: '#/components/schemas/PersonRisks'
hdcEligibilityDate:
Expand Down Expand Up @@ -2832,6 +2832,63 @@ components:
- personName
- crn
- nomsNumber
Cas2v2StatusUpdate:
type: object
properties:
id:
type: string
format: uuid
name:
type: string
example: 'moreInfoRequested'
label:
type: string
example: 'More information requested'
description:
type: string
example: 'More information about the application has been requested from the HMPPS user.'
updatedBy:
$ref: '#/components/schemas/Cas2v2User'
updatedAt:
type: string
format: date-time
statusUpdateDetails:
type: array
items:
$ref: '#/components/schemas/Cas2v2StatusUpdateDetail'
required:
- id
- name
- label
- description
Cas2v2StatusUpdateDetail:
type: object
properties:
id:
type: string
format: uuid
name:
type: string
example: 'moreInfoRequested'
label:
type: string
example: 'More information requested'
required:
- id
- name
- label
LatestCas2v2StatusUpdate:
type: object
properties:
statusId:
type: string
format: uuid
label:
type: string
example: 'More information requested'
required:
- statusId
- label
Cas2StatusUpdate:
type: object
properties:
Expand Down Expand Up @@ -3456,7 +3513,7 @@ components:
statusUpdates:
type: array
items:
$ref: '#/components/schemas/Cas2StatusUpdate'
$ref: '#/components/schemas/Cas2v2StatusUpdate'
required:
- id
UpdateCas2Assessment:
Expand Down
Loading

0 comments on commit cae752a

Please sign in to comment.