Skip to content

Commit

Permalink
Automated commit 'Merge pull request #1509 from sailpoint/fix/SpConfi…
Browse files Browse the repository at this point in the history
…gResponses

Fix the response schema for sp config endpoints' by github action: 7120554106
  • Loading branch information
tyler-mairose-sp committed Dec 6, 2023
1 parent bb7cb9d commit 53f0c40
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 23 deletions.
6 changes: 3 additions & 3 deletions idn/beta/paths/sp-config-export-status.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
get:
operationId: getSpConfigExportStatus
# security:
# - oauth2: [sp:config:export]
security:
- UserContextAuth: [ sp:config:read, sp:config:manage]
tags:
- SP-Config
summary: Get export job status
Expand All @@ -27,7 +27,7 @@ get:
content:
application/json:
schema:
$ref: '../../beta/schemas/SpConfigJob.yaml'
$ref: '../../beta/schemas/SpConfigExportJobStatus.yaml'
example:
{
"jobId": "1e824aa0-4c6e-4f14-95e9-e7dc5234aa51",
Expand Down
2 changes: 1 addition & 1 deletion idn/beta/paths/sp-config-export.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ post:
content:
application/json:
schema:
$ref: "../schemas/SpConfigJob.yaml"
$ref: "../schemas/SpConfigExportJob.yaml"
"400":
description: |
Client Error - Returned if the request body is invalid.
Expand Down
6 changes: 3 additions & 3 deletions idn/beta/paths/sp-config-import-status.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
get:
operationId: getSpConfigImportStatus
# security:
# - oauth2: [sp:config:import]
security:
- UserContextAuth: [ sp:config:manage ]
tags:
- SP-Config
summary: Get import job status
Expand All @@ -28,7 +28,7 @@ get:
content:
application/json:
schema:
$ref: '../../beta/schemas/SpConfigJob.yaml'
$ref: '../../beta/schemas/SpConfigImportJobStatus.yaml'
example:
{
"jobId": "4fb10503-1c49-4603-8f8d-886e1f6aa47b",
Expand Down
10 changes: 10 additions & 0 deletions idn/beta/schemas/SpConfigExportJob.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
allOf:
- $ref: "./SpConfigJob.yaml"
- type: object
required:
- description
properties:
description:
type: string
description: Optional user defined description/name for export job.
example: "ETS configuration objects from Acme-Solar sandbox"
11 changes: 11 additions & 0 deletions idn/beta/schemas/SpConfigExportJobStatus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
allOf:
- $ref: "./SpConfigExportJob.yaml"
- type: object
required:
- completed
properties:
completed:
type: string
format: 'date-time'
description: The time the job was completed.
example: "2021-05-11T22:23:16Z"
16 changes: 16 additions & 0 deletions idn/beta/schemas/SpConfigImportJobStatus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
allOf:
- $ref: "./SpConfigJob.yaml"
- type: object
required:
- completed
- message
properties:
message:
type: string
description: This message contains additional information about the overall status of the job.
example: "Download import results for details."
completed:
type: string
format: 'date-time'
description: The time the job was completed.
example: "2021-05-11T22:23:16Z"
16 changes: 0 additions & 16 deletions idn/beta/schemas/SpConfigJob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,6 @@ properties:
- EXPORT
- IMPORT
example: "IMPORT"
message:
type: string
description: This message contains additional information about the overall status of the job.
example: "Download import results for details."
description:
type: string
description: Optional user defined description/name for export job.
example: "ETS configuration objects from Acme-Solar sandbox"
expiration:
type: string
format: 'date-time'
Expand All @@ -44,18 +36,10 @@ properties:
format: 'date-time'
description: The time of the last update to the job.
example: "2021-05-11T22:23:16Z"
completed:
type: string
format: 'date-time'
description: The time the job was completed.
example: "2021-05-11T22:23:16Z"
required:
- jobId
- status
- type
- message
- description
- expiration
- created
- modified
- completed

0 comments on commit 53f0c40

Please sign in to comment.