fix(API): Correct credential schema for response in POST /credentials (#11340)

This commit is contained in:
Iván Ovejero 2024-10-23 09:18:50 +02:00 committed by GitHub
parent 695f6531f4
commit f4958756b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 29 additions and 1 deletions

View file

@ -18,7 +18,7 @@ post:
content:
application/json:
schema:
$ref: '../schemas/credential.yml'
$ref: '../schemas/create-credential-response.yml'
'401':
$ref: '../../../../shared/spec/responses/unauthorized.yml'
'415':

View file

@ -0,0 +1,28 @@
required:
- id
- name
- type
- createdAt
- updatedAt
type: object
properties:
id:
type: string
readOnly: true
example: vHxaz5UaCghVYl9C
name:
type: string
example: John's Github account
type:
type: string
example: github
createdAt:
type: string
format: date-time
readOnly: true
example: '2022-04-29T11:02:29.842Z'
updatedAt:
type: string
format: date-time
readOnly: true
example: '2022-04-29T11:02:29.842Z'