Skip to content

Commit

Permalink
CLI uses description annotation from zio-schema (#2499)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorge-vasquez-2301 authored Oct 30, 2023
1 parent 01aa1e9 commit 1ee9701
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 10 deletions.
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

0 comments on commit 1ee9701

Please sign in to comment.