Webapi-Swagger : Generate ToX
and FromX
instances based on ContentTypes
#19
Labels
Webapi-Swagger
All issues related to Webapi-swagger (generation of Webapi contracts from Swagger Docs)
Currently we are blindly generating
ToJSON
andFromJSON
instances for generated types inTypes.hs
.We need to have a look at
ContentTypes
(if set) in theContract
in order to decide and generate the appropriate (ToJSON
,ToXML
...) instance .We probably need to pass the
ContentType
data in theState
and read it when generating the types.The text was updated successfully, but these errors were encountered: