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

Allow to override mapping of custom scalar to OpenAPI #1159

Merged
merged 2 commits into from
Sep 21, 2022

Conversation

izumin5210
Copy link
Contributor

In the current implementation, all custom scalars are mapped to { type: "object" } on OpenAPI. However, object is not appropriate because, for example, a Date scalar is a string of the form "YYYYY-mm-dd".
This PR implements the customScalars option to control the type of custom scalars when mapping them to OpenAPI.

@izumin5210
Copy link
Contributor Author

@ardatan can you please review this PR?

@izumin5210
Copy link
Contributor Author

@Urigo @dotansimha how can we help to merge this faster? 🙏

@ardatan ardatan merged commit 9b6d3b9 into Urigo:master Sep 21, 2022
@izumin5210 izumin5210 deleted the custom-scalars branch September 29, 2022 09:52
jgartor pushed a commit to dataxquare/SOFA that referenced this pull request May 4, 2023
* Allow to override mapping of custom scalar to OpenAPI

* Trigger CI

Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
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.

2 participants