Skip to content

Commit 0ee4fcc

Browse files
committed
Use text/plain instead of incorrect plain/text
1 parent a45cefb commit 0ee4fcc

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

extensions/smallrye-openapi/deployment/src/main/java/io/quarkus/smallrye/openapi/deployment/SmallRyeOpenApiProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ public class SmallRyeOpenApiProcessor {
164164
static {
165165
System.setProperty(io.smallrye.openapi.api.constants.OpenApiConstants.DEFAULT_PRODUCES, "application/json");
166166
System.setProperty(io.smallrye.openapi.api.constants.OpenApiConstants.DEFAULT_CONSUMES, "application/json");
167-
System.setProperty(io.smallrye.openapi.api.constants.OpenApiConstants.DEFAULT_PRODUCES_PRIMITIVES, "plain/text");
168-
System.setProperty(io.smallrye.openapi.api.constants.OpenApiConstants.DEFAULT_CONSUMES_PRIMITIVES, "plain/text");
167+
System.setProperty(io.smallrye.openapi.api.constants.OpenApiConstants.DEFAULT_PRODUCES_PRIMITIVES, "text/plain");
168+
System.setProperty(io.smallrye.openapi.api.constants.OpenApiConstants.DEFAULT_CONSUMES_PRIMITIVES, "text/plain");
169169
}
170170

171171
@BuildStep

extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/DefaultContentTypeTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public void testOpenApiPathAccessResource() {
2828
Matchers.containsString("#/components/schemas/Greeting"))
2929
.body("paths.'/greeting/hello'.get.responses.'200'.content.'application/json'.schema.$ref",
3030
Matchers.containsString("#/components/schemas/Greeting"))
31-
.body("paths.'/greeting/foo'.get.responses.'200'.content.'plain/text'.schema.type",
31+
.body("paths.'/greeting/foo'.get.responses.'200'.content.'text/plain'.schema.type",
3232
Matchers.equalTo("string"))
3333
.body("paths.'/greeting/hello'.post.responses.'200'.content.'application/json'.schema.$ref",
3434
Matchers.containsString("#/components/schemas/Greeting"));

integration-tests/main/src/test/java/io/quarkus/it/main/OpenApiTestCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
public class OpenApiTestCase {
2323

2424
private static final String DEFAULT_MEDIA_TYPE = "application/json";
25-
private static final String DEFAULT_MEDIA_TYPE_PRIMITAVE = "plain/text";
25+
private static final String DEFAULT_MEDIA_TYPE_PRIMITAVE = "text/plain";
2626

2727
@TestHTTPResource("q/openapi")
2828
URL uri;

0 commit comments

Comments
 (0)