Skip to content

Commit

Permalink
Properly render JsonResponse in schema
Browse files Browse the repository at this point in the history
  • Loading branch information
danslapman committed Jun 5, 2023
1 parent d0b825f commit 075357b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import sttp.tapir.Schema
import sttp.tapir.SchemaType
import sttp.tapir.Validator

import ru.tinkoff.tcb.mockingbird.model.JsonResponse
import ru.tinkoff.tcb.utils.circe.optics.JsonOptic

object schema {
Expand All @@ -22,9 +21,6 @@ object schema {
None
)

implicit val jsonResponseSchema: Schema[JsonResponse] =
Schema(SchemaType.SProduct[JsonResponse](Nil))

implicit val regexSchema: Schema[Regex] =
Schema.schemaForString.as[Regex]

Expand Down
2 changes: 1 addition & 1 deletion backend/project/Settings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ object Settings {

val common = Seq(
organization := "ru.tinkoff",
version := "3.8.0",
version := "3.9.1",
scalaVersion := "2.13.10",
Compile / packageDoc / publishArtifact := false,
Compile / packageSrc / publishArtifact := false,
Expand Down

0 comments on commit 075357b

Please sign in to comment.