diff --git a/test/Altinn.App.Api.Tests/OpenApi/swagger.json b/test/Altinn.App.Api.Tests/OpenApi/swagger.json index 0499dcc4a..eba3e3492 100644 --- a/test/Altinn.App.Api.Tests/OpenApi/swagger.json +++ b/test/Altinn.App.Api.Tests/OpenApi/swagger.json @@ -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" + } + } + } } } } @@ -7497,8 +7527,7 @@ }, "SigneeState": { "required": [ - "hasSigned", - "name" + "hasSigned" ], "type": "object", "properties": { @@ -7506,6 +7535,10 @@ "type": "string", "nullable": true }, + "organisation": { + "type": "string", + "nullable": true + }, "hasSigned": { "type": "boolean" }, diff --git a/test/Altinn.App.Api.Tests/OpenApi/swagger.yaml b/test/Altinn.App.Api.Tests/OpenApi/swagger.yaml index 7514160e9..e013a0943 100644 --- a/test/Altinn.App.Api.Tests/OpenApi/swagger.yaml +++ b/test/Altinn.App.Api.Tests/OpenApi/swagger.yaml @@ -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: @@ -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: