Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inside nested 1 8 0 #5

Open
wants to merge 1 commit into
base: inside_nested_coproducts
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bsp/sbt.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"name":"sbt","version":"1.9.6","bspVersion":"2.1.0-M1","languages":["scala"],"argv":["/Library/Java/JavaVirtualMachines/zulu-21.jdk/Contents/Home/bin/java","-Xms100m","-Xmx100m","-classpath","/Users/andersjespersen/Library/Application Support/JetBrains/IdeaIC2023.2/plugins/Scala/launcher/sbt-launch.jar","-Dsbt.script=/opt/homebrew/bin/sbt","xsbt.boot.Boot","-bsp"]}
{"name":"sbt","version":"1.9.6","bspVersion":"2.1.0-M1","languages":["scala"],"argv":["/Library/Java/JavaVirtualMachines/adoptopenjdk-14.jdk/Contents/Home/bin/java","-Xms100m","-Xmx100m","-classpath","/Users/andersbohn/Library/Application Support/JetBrains/IdeaIC2023.2/plugins/Scala/launcher/sbt-launch.jar","-Dsbt.script=/usr/local/bin/sbt","xsbt.boot.Boot","-bsp"]}
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
val tapirVersion = "1.7.5"
val tapirVersion = "1.8.0"

lazy val rootProject = (project in file(".")).settings(
Seq(
Expand Down
2 changes: 2 additions & 0 deletions src/test/resources/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ components:
$ref: '#/components/schemas/AName'
deprAName:
$ref: '#/components/schemas/AName'
deprecated: true
bName:
$ref: '#/components/schemas/BName'
EventC:
Expand All @@ -86,6 +87,7 @@ components:
properties:
deprBName:
$ref: '#/components/schemas/BName'
deprecated: true
bName:
$ref: '#/components/schemas/BName'
EventD:
Expand Down
4 changes: 2 additions & 2 deletions src/test/scala/com/softwaremill/EndpointsSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ object EndpointsSpec extends ZIOSpecDefault {
val docs: OpenAPI =
OpenAPIDocsInterpreter().toOpenAPI(List(Endpoints.eventsListing, Endpoints.postEvent), "vague-chipmunk", "1.0.0")
val yaml = docs.toYaml
val x = sys.env.get("REGENERATE_DOCS_YAML")
if (sys.env.contains("REGENERATE_DOCS_YAML")) {
val regenerate = sys.env.get("REGENERATE_DOCS_YAML")
if (regenerate.nonEmpty) {
Files.write(java.nio.file.Paths.get("./src/test/resources/docs.yaml"), yaml.getBytes(StandardCharsets.UTF_8))
}
val expected = scala.io.Source.fromResource("docs.yaml")(StandardCharsets.UTF_8).mkString
Expand Down