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

Use haskell datatype names for swagger objects #184

Merged
merged 1 commit into from
Apr 26, 2019

Conversation

akegalj
Copy link
Contributor

@akegalj akegalj commented Apr 26, 2019

Issue Number

#93

Overview

  • I have changed ToSchema instances to use standard haskell datatype names instead of renamed

Comments

Ideally manual ToSchema instances defined here https://github.com/input-output-hk/cardano-wallet/blob/akegalj/93/standard-swagger-names/test/unit/Cardano/Wallet/Api/TypesSpec.hs#L511 would be removed and they would be generated automatically (for example using Generic we could capture datatype name). Current approach doesn't add much overhead so I don't find this necessary.

@akegalj akegalj force-pushed the akegalj/93/standard-swagger-names branch from 9866e38 to 69742ff Compare April 26, 2019 08:33
@KtorZ KtorZ merged commit cc79fcc into master Apr 26, 2019
@KtorZ KtorZ deleted the akegalj/93/standard-swagger-names branch April 26, 2019 09:20
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

Successfully merging this pull request may close these issues.

None yet

2 participants