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

A typeclass to go from a type (representing a Parameter) to an Operation/Param type #179

Open
kahlil29 opened this issue Feb 18, 2019 · 0 comments

Comments

@kahlil29
Copy link

I have a haskell representation of endpoints, their inputs (parameters) and outputs (responses).
I am using ToSchema to convert back from Haskell data structures to the corresponding Schema structures.

I wanted to do the same for my Parameters (currently represented by Haskell types in the code), so that I can generate a Swagger Doc (Json) from my Haskell code and properly represent the Endpoint Parameters/Responses. Is there any way to currently do this?

Or are there plans to have a typeclass like ToOperation or ToParam for the same?

Note : I am not using servant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant