Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webapi-Swagger : Generate ToX and FromX instances based on ContentTypes #19

Open
kahlil29 opened this issue Mar 28, 2019 · 0 comments
Open
Assignees
Labels
Webapi-Swagger All issues related to Webapi-swagger (generation of Webapi contracts from Swagger Docs)

Comments

@kahlil29
Copy link
Contributor

Currently we are blindly generating ToJSON and FromJSON instances for generated types in Types.hs.

We need to have a look at ContentTypes (if set) in the Contract in order to decide and generate the appropriate (ToJSON, ToXML ...) instance .

We probably need to pass the ContentType data in the State and read it when generating the types.

@kahlil29 kahlil29 self-assigned this Mar 28, 2019
@kahlil29 kahlil29 added the Webapi-Swagger All issues related to Webapi-swagger (generation of Webapi contracts from Swagger Docs) label Mar 28, 2019
@kahlil29 kahlil29 changed the title Webapi-Swagger : Generated ToX and FromX instances based on ContentTypes Webapi-Swagger : Generate ToX and FromX instances based on ContentTypes Apr 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Webapi-Swagger All issues related to Webapi-swagger (generation of Webapi contracts from Swagger Docs)
Projects
None yet
Development

No branches or pull requests

1 participant