Skip to content

Commit

Permalink
fix: remove oas schema format for empty repsonse body (#902)
Browse files Browse the repository at this point in the history
Signed-off-by: Pat Losoponkul <[email protected]>
Signed-off-by: Shota Jolbordi <[email protected]>
  • Loading branch information
patlo-iog authored and Shota Jolbordi committed Mar 18, 2024
1 parent be2ebc8 commit 2c4188c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ object DIDCodec {

def emptyDidJsonLD: Codec[String, DIDResolutionResult, DIDJsonLD] =
didJsonLD.schema(_ =>
Schema.schemaForByteArray
Schema.schemaForString
.description("Empty representation")
.encodedExample(Array.emptyByteArray)
.encodedExample("")
.as
)

Expand Down

0 comments on commit 2c4188c

Please sign in to comment.