Skip to content

Commit

Permalink
Simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
guersam committed Jul 4, 2024
1 parent a7bf6ff commit a39555a
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ object JsonCodecSpec extends ZIOSpecDefault {
JsonError.Message("extra field") :: Nil
) &>
assertDecodesToError(
CaseClass0WithRejectExtraFields.schema,
schemaObject.annotate(rejectExtraFields()),
"""{"extraField":10}""",
JsonError.Message("extra field") :: Nil
)
Expand Down Expand Up @@ -1606,12 +1606,6 @@ object JsonCodecSpec extends ZIOSpecDefault {
val schema: Schema[PersonWithRejectExtraFields] = DeriveSchema.gen[PersonWithRejectExtraFields]
}

@rejectExtraFields final case class CaseClass0WithRejectExtraFields()

object CaseClass0WithRejectExtraFields {
val schema: Schema[CaseClass0WithRejectExtraFields] = DeriveSchema.gen[CaseClass0WithRejectExtraFields]
}

case class FieldDefaultValueSearchRequest(
query: String,
pageNumber: Int,
Expand Down

0 comments on commit a39555a

Please sign in to comment.