-
Notifications
You must be signed in to change notification settings - Fork 424
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
rojekp
committed
May 10, 2021
1 parent
6d532fd
commit dbe8567
Showing
98 changed files
with
222 additions
and
94 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
apispec/openapi-circe/src/test/resources/expected_webhooks.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"openapi": "3.1.0", | ||
"info": { | ||
"title": "Fruits", | ||
"version": "1.0" | ||
}, | ||
"paths": { | ||
"/": { | ||
"get": { | ||
"operationId": "getRoot", | ||
"responses": { | ||
"200": { | ||
"description": "Default description" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"webhooks": { | ||
"newPet": { | ||
"get": { | ||
"operationId": "getRoot", | ||
"responses": { | ||
"200": { | ||
"description": "Default description" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
apispec/openapi-circe/src/test/resources/expected_with_schema_dialect.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"openapi": "3.1.0", | ||
"info": { | ||
"title": "Fruits", | ||
"version": "1.0" | ||
}, | ||
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema", | ||
"paths": { | ||
"/": { | ||
"get": { | ||
"operationId": "getRoot", | ||
"responses": { | ||
"200": { | ||
"description": "Default description" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
65 changes: 65 additions & 0 deletions
65
apispec/openapi-circe/src/test/scala/sttp/tapir/openapi/circe/TapirOpenAPICirceTest.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
package sttp.tapir.openapi.circe | ||
|
||
import io.circe.Printer | ||
import io.circe.syntax.EncoderOps | ||
import sttp.tapir.apispec.ReferenceOr | ||
import sttp.tapir.openapi._ | ||
import org.scalatest.funsuite.AnyFunSuite | ||
import org.scalatest.matchers.should.Matchers | ||
|
||
import scala.collection.immutable.ListMap | ||
import scala.io.Source | ||
|
||
class TapirOpenAPICirceTest extends AnyFunSuite with Matchers { | ||
|
||
test("should match the expected yaml with schema dialect") { | ||
val expectedJson = load("expected_with_schema_dialect.json") | ||
val responsesList = ListMap[ResponsesKey, ReferenceOr[Response]](ResponsesCodeKey(200) -> Right(Response(description = "Default description"))) | ||
val responses = Responses(responsesList) | ||
val operation = Operation(operationId = "getRoot", responses = responses) | ||
val pathItem = PathItem(get = Some(operation)) | ||
|
||
val actualJson = OpenAPI( | ||
info = Info("Fruits", "1.0"), | ||
jsonSchemaDialect = Some("https://json-schema.org/draft/2020-12/schema"), | ||
tags = List.empty, | ||
servers = List.empty, | ||
paths = Paths(ListMap[String, PathItem]("/" -> pathItem)), | ||
webhooks = None, | ||
components = None, | ||
security = List.empty) | ||
.asJson | ||
val actualJsonNoIndent = noIndentation(Printer.spaces2.print(actualJson)) | ||
|
||
actualJsonNoIndent shouldBe expectedJson | ||
} | ||
|
||
test("should match the expected yaml with webhooks") { | ||
val expectedJson = load("expected_webhooks.json") | ||
val responsesList = ListMap[ResponsesKey, ReferenceOr[Response]](ResponsesCodeKey(200) -> Right(Response(description = "Default description"))) | ||
val responses = Responses(responsesList) | ||
val operation = Operation(operationId = "getRoot", responses = responses) | ||
val eitherPathItem = Right(PathItem(get = Some(operation))) | ||
val pathItem = PathItem(get = Some(operation)) | ||
|
||
val actualJson= OpenAPI( | ||
info = Info("Fruits", "1.0"), | ||
jsonSchemaDialect = None, | ||
tags = List.empty, | ||
servers = List.empty, | ||
paths = Paths(ListMap[String, PathItem]("/" -> pathItem)), | ||
webhooks = Some(Map("newPet" -> eitherPathItem)), | ||
components = None, | ||
security = List.empty) | ||
.asJson | ||
val actualJsonNoIndent = noIndentation(Printer.spaces2.print(actualJson)) | ||
|
||
actualJsonNoIndent shouldBe expectedJson | ||
} | ||
|
||
private def load(fileName: String): String = { | ||
noIndentation(Source.fromInputStream(getClass.getResourceAsStream(s"/$fileName")).getLines().mkString("\n")) | ||
} | ||
private def noIndentation(s: String): String = s.replaceAll("[ \t]", "").trim | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
docs/openapi-docs/src/test/resources/coproduct/expected_coproduct.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Fruits | ||
version: '1.0' | ||
|
2 changes: 1 addition & 1 deletion
2
docs/openapi-docs/src/test/resources/coproduct/expected_coproduct_discriminator.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Fruits | ||
version: '1.0' | ||
|
2 changes: 1 addition & 1 deletion
2
docs/openapi-docs/src/test/resources/coproduct/expected_coproduct_discriminator_nested.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Fruits | ||
version: '1.0' | ||
|
2 changes: 1 addition & 1 deletion
2
...pi-docs/src/test/resources/coproduct/expected_coproduct_discriminator_with_enum_circe.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: My Bookshop | ||
version: '1.0' | ||
|
2 changes: 1 addition & 1 deletion
2
docs/openapi-docs/src/test/resources/coproduct/expected_coproduct_nested.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Fruits | ||
version: '1.0' | ||
|
2 changes: 1 addition & 1 deletion
2
docs/openapi-docs/src/test/resources/coproduct/expected_generic_coproduct.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Fruits | ||
version: '1.0' | ||
|
2 changes: 1 addition & 1 deletion
2
docs/openapi-docs/src/test/resources/coproduct/expected_recursive_coproducts.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Entities | ||
version: '1.0' | ||
|
2 changes: 1 addition & 1 deletion
2
.../openapi-docs/src/test/resources/coproduct/expected_unfolded_coproduct_unfolded_array.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Entities | ||
version: '1.0' | ||
|
2 changes: 1 addition & 1 deletion
2
docs/openapi-docs/src/test/resources/decode_failure_output/expected_default_400_response.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Entities | ||
version: '1.0' | ||
|
2 changes: 1 addition & 1 deletion
2
docs/openapi-docs/src/test/resources/decode_failure_output/expected_no_400_response.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Entities | ||
version: '1.0' | ||
|
2 changes: 1 addition & 1 deletion
2
...pi-docs/src/test/resources/decode_failure_output/expected_response_defined_in_options.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Entities | ||
version: '1.0' | ||
|
2 changes: 1 addition & 1 deletion
2
.../openapi-docs/src/test/resources/decode_failure_output/expected_user_defined_response.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Entities | ||
version: '1.0' | ||
|
2 changes: 1 addition & 1 deletion
2
docs/openapi-docs/src/test/resources/enum/expected_enumeratum_enum_component.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Countries | ||
version: '1.0' | ||
|
2 changes: 1 addition & 1 deletion
2
docs/openapi-docs/src/test/resources/enum/expected_enumeratum_int_enum_component.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Errors | ||
version: '1.0' | ||
|
2 changes: 1 addition & 1 deletion
2
docs/openapi-docs/src/test/resources/enum/expected_trait_enum_component.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Games | ||
version: '1.0' | ||
|
2 changes: 1 addition & 1 deletion
2
.../openapi-docs/src/test/resources/example/expected_examples_of_list_and_not_list_types.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Entities | ||
version: '1.0' | ||
|
2 changes: 1 addition & 1 deletion
2
docs/openapi-docs/src/test/resources/example/expected_fixed_header_example.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Examples | ||
version: '1.0' | ||
|
2 changes: 1 addition & 1 deletion
2
docs/openapi-docs/src/test/resources/example/expected_multiple_examples.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Entities | ||
version: '1.0' | ||
|
2 changes: 1 addition & 1 deletion
2
...openapi-docs/src/test/resources/example/expected_multiple_examples_with_default_names.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Entities | ||
version: '1.0' | ||
|
2 changes: 1 addition & 1 deletion
2
...src/test/resources/example/expected_multiple_examples_with_explicit_and_default_names.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Entities | ||
version: '1.0' | ||
|
2 changes: 1 addition & 1 deletion
2
docs/openapi-docs/src/test/resources/example/expected_multiple_examples_with_names.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Entities | ||
version: '1.0' | ||
|
2 changes: 1 addition & 1 deletion
2
docs/openapi-docs/src/test/resources/example/expected_schema_example.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Examples | ||
version: '1.0' | ||
|
2 changes: 1 addition & 1 deletion
2
docs/openapi-docs/src/test/resources/example/expected_single_example_with_name.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Entities | ||
version: '1.0' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"openapi" : "3.0.3", | ||
"openapi" : "3.1.0", | ||
"info" : { | ||
"title" : "Fruits", | ||
"version" : "1.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Fruits | ||
version: '1.0' | ||
|
2 changes: 1 addition & 1 deletion
2
docs/openapi-docs/src/test/resources/expected_additional_properties.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Entities | ||
version: '1.0' | ||
|
2 changes: 1 addition & 1 deletion
2
docs/openapi-docs/src/test/resources/expected_arbitrary_json_output.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Entities | ||
version: '1.0' | ||
|
2 changes: 1 addition & 1 deletion
2
docs/openapi-docs/src/test/resources/expected_array_no_format.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Entities | ||
version: '1.0' | ||
|
2 changes: 1 addition & 1 deletion
2
docs/openapi-docs/src/test/resources/expected_custom_operation_id.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Fruits | ||
version: '1.0' | ||
|
2 changes: 1 addition & 1 deletion
2
docs/openapi-docs/src/test/resources/expected_custom_schema_name.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Fruits | ||
version: '1.0' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Examples | ||
version: '1.0' | ||
|
2 changes: 1 addition & 1 deletion
2
docs/openapi-docs/src/test/resources/expected_default_query_param.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Entities | ||
version: '1.0' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Entities | ||
version: '1.0' | ||
|
2 changes: 1 addition & 1 deletion
2
docs/openapi-docs/src/test/resources/expected_descriptions_in_nested_custom_schemas.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Fruits | ||
version: '1.0' | ||
|
2 changes: 1 addition & 1 deletion
2
docs/openapi-docs/src/test/resources/expected_double_quoted.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: "3.0.3" | ||
openapi: "3.1.0" | ||
info: | ||
title: "String style" | ||
version: "1.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openapi: 3.0.3 | ||
openapi: 3.1.0 | ||
info: | ||
title: Fruits | ||
version: '1.0' | ||
|
Oops, something went wrong.