Skip to content

Commit

Permalink
update swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
HauklandJ committed Dec 13, 2024
1 parent 46ed83e commit 3c05769
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 3 deletions.
37 changes: 35 additions & 2 deletions test/Altinn.App.Api.Tests/OpenApi/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -4635,6 +4635,36 @@
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/ProblemDetails"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProblemDetails"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/ProblemDetails"
}
},
"application/xml": {
"schema": {
"$ref": "#/components/schemas/ProblemDetails"
}
},
"text/xml": {
"schema": {
"$ref": "#/components/schemas/ProblemDetails"
}
}
}
}
}
}
Expand Down Expand Up @@ -7497,15 +7527,18 @@
},
"SigneeState": {
"required": [
"hasSigned",
"name"
"hasSigned"
],
"type": "object",
"properties": {
"name": {
"type": "string",
"nullable": true
},
"organisation": {
"type": "string",
"nullable": true
},
"hasSigned": {
"type": "boolean"
},
Expand Down
22 changes: 21 additions & 1 deletion test/Altinn.App.Api.Tests/OpenApi/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2822,6 +2822,24 @@ paths:
text/xml:
schema:
$ref: '#/components/schemas/ProblemDetails'
'400':
description: Bad Request
content:
text/plain:
schema:
$ref: '#/components/schemas/ProblemDetails'
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
text/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
application/xml:
schema:
$ref: '#/components/schemas/ProblemDetails'
text/xml:
schema:
$ref: '#/components/schemas/ProblemDetails'
'/{org}/{app}/v1/data':
get:
tags:
Expand Down Expand Up @@ -4802,12 +4820,14 @@ components:
SigneeState:
required:
- hasSigned
- name
type: object
properties:
name:
type: string
nullable: true
organisation:
type: string
nullable: true
hasSigned:
type: boolean
delegationSuccessful:
Expand Down

0 comments on commit 3c05769

Please sign in to comment.