Skip to content

Commit a1c53db

Browse files
authored
Remove semicolon from text/plain content type in example Swagger specs (#2022)
The extra semicolon causes a `NonConformingResponseHeaders` exception when response validation is enabled for the Swagger spec in these examples.
1 parent dd79c11 commit a1c53db

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/frameworks/spec/swagger.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ paths:
1313
description: Generates a greeting message.
1414
operationId: post_greeting
1515
produces:
16-
- text/plain;
16+
- text/plain
1717
responses:
1818
'200':
1919
description: greeting response

examples/helloworld/spec/swagger.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ paths:
1313
description: Generates a greeting message.
1414
operationId: hello.post_greeting
1515
produces:
16-
- text/plain;
16+
- text/plain
1717
responses:
1818
'200':
1919
description: greeting response

0 commit comments

Comments
 (0)