Tags: promisingcoder/zio-http
Tags
[openapi] fix incomplete handling (fails on Schema.Lazy) for openapi'… …s fromEndpoints (zio#2935) * add a failing test * fix code to pass failed test
Update zio-sbt-website to 0.4.0-alpha.26 (zio#2832) Co-authored-by: Milad Khajavi <khajavi@gmail.com> Co-authored-by: Nabil Abdel-Hafeez <7283535+987Nabil@users.noreply.github.com>
feat: Proper imports for generated openapi code (zio#2718) * feat: load scalaFmt only once When generating multiple files, that are all formatted with the same scalafmt.conf, load it only once. In addition, writeFiles now returns a list of written paths. This will allow to use it in a source generation step e.g. in sbt. * feat: Proper imports for generated openapi code Extend the code generator, such that each generation step can add imports, which are then rendered at the file or object level. This fixes a few issues where imports were missing for generated case classes, that had `Chunk` fields. It also unifies the handling of UUIDs and opens the dor for additional future configuration options. For example the collection type can be made configurable, or user defined types can be added to the imports. `writeFiles` now returns a list of written files. This allows for use in sbt code generation tasks. I will add an sbt plugin in a later PR.
Improve OpenAPI model; Add OpenAPI generator for EndpointAPI (zio#1498)… … (zio#2470) * Improve OpenAPI model; Add OpenAPI generator for EndpointAPI (zio#1498) * Minimize schema for optional fields * Integrate main changes * Fix Scala 3 build * Fix exhaustive matching * More OpenAPI generation tests * Use latest zio-schema snapshot for Scala 3 macro derivation fix * Formatting * OpenAPI tests now compare json ASTs, to avoid string render differences * Refactoring * improve docs (zio#2482) * Add a test of a middleware providing a context to a `Routes` (zio#2487) * Add a test of a middleware providing a context to a `Routes` * Add a test of a middleware providing a context to a `Routes` * scalafmt * scalafmt * Remove usage of deprecated method in build.sbt (zio#2486) * Update sbt-github-actions to 0.18.0 (zio#2484) * Update sbt-github-actions to 0.18.0 * Regenerate GitHub Actions workflow Executed command: sbt githubWorkflowGenerate * Update netty-codec-http, ... to 4.1.100.Final (zio#2485) * Generate readme * OpenAPI gen support for all kinds of enums with(out) discriminators OpenAPI gen support for default values, optional and transient fields --------- Co-authored-by: TomTriple <mail@tomhoefer.de> Co-authored-by: Jules Ivanic <jules.ivanic@gmail.com> Co-authored-by: Scala Steward <43047562+scala-steward@users.noreply.github.com>
Endpoint#outErrorWith (zio#2097) * Endpoint#outErrorWith * Missing cases * Revert "Missing cases" This reverts commit 58fcec6. * Revert "Endpoint#outErrorWith" This reverts commit 0b5a103. * Alternative version * Remove debug code * HttpCodec.enum * enum => enumeration * Partial application trick * Simplify enumeration
PreviousNext