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

CLI uses description annotation from zio-schema #2499

Merged
merged 2 commits into from
Oct 30, 2023
Merged
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 project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ object Dependencies {
val ScalaCompactCollectionVersion = "2.11.0"
val ZioVersion = "2.0.18"
val ZioCliVersion = "0.5.0"
val ZioSchemaVersion = "0.4.14"
val ZioSchemaVersion = "0.4.15"
val SttpVersion = "3.3.18"

val `jwt-core` = "com.github.jwt-scala" %% "jwt-core" % JwtCoreVersion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import zio.{Scope => _, _}
import zio.schema.{DeriveSchema, Schema}

import zio.http._
import zio.http.codec.{PathCodec, QueryCodec}
import zio.http.endpoint._
import zio.http.codec.QueryCodec
import zio.http.endpoint.Endpoint

import cats.effect.unsafe.implicits.global
import cats.effect.{IO => CIO}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import zio.cli._
import zio.json.ast._

import zio.schema._
import zio.schema.annotation.description

import zio.http._
import zio.http.codec._
Expand Down

This file was deleted.

3 changes: 2 additions & 1 deletion zio-http-example/src/main/scala/example/CliExamples.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import zio._
import zio.cli._

import zio.schema._
import zio.schema.annotation.description

import zio.http.Header.Location
import zio.http._
import zio.http.codec._
import zio.http.endpoint._
import zio.http.endpoint.cli._
import zio.http.endpoint.{Endpoint, EndpointExecutor}

trait TestCliEndpoints {
import zio.http.codec.PathCodec._
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import zio._

import zio.http.Header.Authorization
import zio.http.codec.{HttpCodec, PathCodec}
import zio.http.endpoint._
import zio.http.endpoint.{Endpoint, EndpointExecutor, EndpointLocator, EndpointMiddleware}
import zio.http.{int => _, _}

object EndpointExamples extends ZIOAppDefault {
Expand Down