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]>
  • Loading branch information
patlo-iog authored Feb 20, 2024
1 parent 8d3f29d commit 5f2bb08
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 5f2bb08

Please sign in to comment.