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

Add possibility to remove optional headers, claims and permissions from body model #387

Conversation

vpetrusevici
Copy link
Contributor

@vpetrusevici vpetrusevici commented Feb 22, 2023

Hi!
I noticed we can't set optional headers claims and permissions without adding them as body fields in swagger schema.
I really have some case when we want to read these headers but allow client to ignore them.
So I added one more attribute config for such cases. Now you can add header to request schema but also remove it from body model.
Discussion in discord https://discord.com/channels/933662816458645504/1077887422026752050

@dj-nitehawk dj-nitehawk merged commit 5068b70 into FastEndpoints:main Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants