sttp-apispec
sttp-apispec copied to clipboard
OpenAPI, AsyncAPI and JSON Schema Scala models.
## About this PR 📦 Updates [org.scala-lang:scala-library](https://github.com/scala/scala) from `2.13.13` to `2.13.14` 📜 [GitHub Release Notes](https://github.com/scala/scala/releases/tag/v2.13.14) - [Version Diff](https://github.com/scala/scala/compare/v2.13.13...v2.13.14) ## Usage ✅ **Please merge!** I'll automatically update this PR to resolve...
## About this PR 📦 Updates * [io.circe:circe-core](https://github.com/circe/circe) * [io.circe:circe-generic](https://github.com/circe/circe) * [io.circe:circe-parser](https://github.com/circe/circe) from `0.14.6` to `0.14.7` 📜 [GitHub Release Notes](https://github.com/circe/circe/releases/tag/v0.14.7) - [Version Diff](https://github.com/circe/circe/compare/v0.14.6...v0.14.7) ## Usage ✅ **Please merge!** I'll automatically...
## About this PR 📦 Updates [org.scalameta:scalafmt-core](https://github.com/scalameta/scalafmt) from `3.7.17` to `3.8.1` 📜 [GitHub Release Notes](https://github.com/scalameta/scalafmt/releases/tag/v3.8.1) - [Version Diff](https://github.com/scalameta/scalafmt/compare/v3.7.17...v3.8.1) ## Usage ✅ **Please merge!** I'll automatically update this PR to resolve...
## About this PR 📦 Updates [org.scala-native:sbt-scala-native](https://github.com/scala-native/scala-native) from `0.4.17` to `0.5.1` 📜 [GitHub Release Notes](https://github.com/scala-native/scala-native/releases/tag/v0.5.1) - [Version Diff](https://github.com/scala-native/scala-native/compare/v0.4.17...v0.5.1) ## Usage ✅ **Please merge!** I'll automatically update this PR to resolve...
## About this PR 📦 Updates [org.scala-lang.modules:scala-collection-compat](https://github.com/scala/scala-collection-compat) from `2.11.0` to `2.12.0` 📜 [GitHub Release Notes](https://github.com/scala/scala-collection-compat/releases/tag/v2.12.0) - [Version Diff](https://github.com/scala/scala-collection-compat/compare/v2.11.0...v2.12.0) ## Usage ✅ **Please merge!** I'll automatically update this PR to resolve...
Current Scala representation of OpenAPI example values is rather unprincipled: ```scala sealed trait ExampleValue case class ExampleSingleValue(value: Any) extends ExampleValue case class ExampleMultipleValue(values: List[Any]) extends ExampleValue ``` The way these...
## About this PR 📦 Updates * [org.scala-js:sbt-scalajs](https://github.com/scala-js/scala-js) * [org.scala-js:scalajs-compiler](https://github.com/scala-js/scala-js) * [org.scala-js:scalajs-library](https://github.com/scala-js/scala-js) * [org.scala-js:scalajs-library_2.13](https://github.com/scala-js/scala-js) from `1.15.0` to `1.16.0` 📜 [GitHub Release Notes](https://github.com/scala-js/scala-js/releases/tag/v1.16.0) - [Version Diff](https://github.com/scala-js/scala-js/compare/v1.15.0...v1.16.0) ## Usage ✅ **Please merge!**...
Reproduce: ```scala import sttp.apispec.openapi.Header import sttp.apispec.openapi.circe.* import io.circe.syntax.* val header = Header() val actual = header.asJson.as[Header] println(actual) ``` outputs: ``` Left(DecodingFailure at .examples: Got value 'null' with wrong type, expecting...
The AsyncAPI Specification 3.0.0 is just around the corner, as such it would be great to add support for it here! https://github.com/asyncapi/spec/issues/691
When rendering an enum schema, `AsyncAPI.toYaml` returns something like this: ``` components: schemas: MyEvent: oneOf: - $ref: '#/components/schemas/MyEvent1' - $ref: '#/components/schemas/MyEvent2' - $ref: '#/components/schemas/MyEvent3' discriminator: propertyName: eventType mapping: MyEvent1: '#/components/schemas/MyEvent1'...