Skip to content

Commit

Permalink
chore: fix generated OAS version to 3.0.3 as TS generator fails with …
Browse files Browse the repository at this point in the history
…3.1.0 (#1432)

Signed-off-by: Benjamin Voiturier <[email protected]>
  • Loading branch information
bvoiturier authored Nov 5, 2024
1 parent 9574ab6 commit 1c7c38e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ object Tapir2StaticOAS extends ZIOAppDefault {
} yield {
import sttp.apispec.openapi.circe.yaml.*
val model = DocModels.customiseDocsModel(OpenAPIDocsInterpreter().toOpenAPI(allEndpoints.map(_.endpoint), "", ""))
val yaml = model.info(model.info.copy(version = args(1))).toYaml
val yaml = model.info(model.info.copy(version = args(1))).toYaml3_0_3
val path = Path.of(args.head)
Using(Files.newBufferedWriter(path, StandardCharsets.UTF_8)) { writer => writer.write(yaml) }
}
Expand Down

0 comments on commit 1c7c38e

Please sign in to comment.