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

Fix optional AsSingleOpenApiParam #488

Merged
merged 2 commits into from
Jan 27, 2021

Conversation

ulanzetz
Copy link
Contributor

@ulanzetz ulanzetz commented Jan 22, 2021

Bug:

In case if AsSingleOpenApiParam for Option[T] and instance of SwaggerTypeable[Option[T]] is inferred, typed-schema picks AsOpenParamInstances.requiredParam branch as more simple than AsOpenParamInstances.optParam.
For example, header[Option[String]]("X-Kek-Id") will be required in OpenAPI.

This solution will fix it and safe other cases logic

@ulanzetz ulanzetz force-pushed the fix-openapi-opt-param branch from 895a06e to be633ab Compare January 22, 2021 14:53
@REDNBLACK REDNBLACK added the bug Something isn't working label Jan 26, 2021
@REDNBLACK REDNBLACK merged commit 6146915 into tofu-tf:master Jan 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants