-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Description
I am trying to return a Json schema in my servant endpoint.
I tried to derive generically ToSchema Schema but it failed because of orderedmaps
I tried a manual instance but it doesn't pass the openapi validators ofc.
instance ToSchema Schema where
declareNamedSchema _ =
pure $ NamedSchema Nothing $ mempty
& properties .~ [
("required", Inline $ toSchema (Proxy @Int))
, ("properties", Inline $ toSchema (Proxy @Int))
, ("example", Inline $ mempty & type_ ?~ OpenApiObject)
]
I wish the instance would live in openapi3.
Metadata
Metadata
Assignees
Labels
No labels