-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[REQ][haskell-http-client] Support type-mapping and import-mappings #2362
Comments
👍 Thanks for opening this issue! The team will review the labels and make any necessary changes. |
type-mappings:
import-mappings:
|
modify preprocessor to remove models: regen with import-mappings and type-mappings: add CustomTypes and CustomInstances: tests passed: |
Thanks for the quick fix! I also did the same test and it worked. |
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Support type-mapping and import-mappings so we can provide custom implementation for selected model, for example, as is done in https://github.com/kubernetes-client/gen/blob/master/openapi/java.xml.
Describe alternatives you've considered
Additional context
In the OpenAPI spec for Kubernetes, there is an
IntOrString
type that's currently mapped toobject
if there is no custom mapping for it: https://github.com/kubernetes-client/gen/blob/c07ee54dcb0ae70c6ef587dded93b6ea75f354ea/openapi/preprocess_spec.py#L275. It would be more type safe to create (by hand) a Sum type for it.@jonschoning
The text was updated successfully, but these errors were encountered: