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

@Hidden annotation for fields in request / response body #131

Open
frynet opened this issue Sep 9, 2022 · 2 comments
Open

@Hidden annotation for fields in request / response body #131

frynet opened this issue Sep 9, 2022 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@frynet
Copy link

frynet commented Sep 9, 2022

I've already added annotation @get:JsonIgnore for my fields. It works fine for runtime requests / responses.

But I need to hide some fields in swagger doc for not misleading frontend-developers. (Those fields also marked as required).

I've already tried to find any solution for my issue in this repository but not found.

@frynet frynet closed this as completed Sep 20, 2022
@frynet frynet reopened this Sep 20, 2022
@Wicpar
Copy link
Collaborator

Wicpar commented Sep 22, 2022

There isn't such a feature. In theory it would't be too complicated to add an annotation to condition spec generation.

@Wicpar
Copy link
Collaborator

Wicpar commented Sep 22, 2022

this is the relevant logic to be eliminated i believe, however there may be side effects if the relevant modules use this for initialization. Maybe a per-module logic may be wiser to allow for modular implementation of the feature.

@Wicpar Wicpar added the help wanted Extra attention is needed label Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants