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

Generate maps for additional properties in OpenAPI code gen (#2901) #2921

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

987Nabil
Copy link
Contributor

fixes #2901
/claim #2901

@jdegoes jdegoes merged commit 3bc7796 into zio:main Jun 19, 2024
33 checks passed
Comment on lines +932 to +933
// properties.isEmpty && additionalProperties.isRight
throw new IllegalArgumentException("Top-level maps are not supported")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@987Nabil why not actually?
If we want to derive an endpoint of a type like: Endpoint[Unit, Unit, Nothing, Map[String, String], None],
how should we go about to do so?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This type would then need to be generated inline. But this code is for generating a file, not an inline type.

@987Nabil 987Nabil deleted the additional-props-to-map branch June 22, 2024 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants