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

[FR] Provide a flag to add exclude empty collections annotations in codegen #1668

Open
nampham148 opened this issue Feb 22, 2022 · 0 comments

Comments

@nampham148
Copy link

What happened?

We are having a use case where we send requests across different stacks, which means there are no version constraint between clients and servers. As it is, if a new collection field is added and client takes the update before server, the server will throw on unknown field even if the client hasn't used this new field yet (sending an empty collection). It'd be nice to exclude the empty collection field in the request in this case, so that we have a bit more forward compatibility.

What did you want to happen?

We want a flag to allow excluding empty collections from objects. It would be the collection counter part of this excludeEmptyOptionals flag.

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

No branches or pull requests

1 participant