nelmio / NelmioApiDocBundle

Generates documentation for your REST API from annotations
MIT License
2.21k stars 828 forks source link

[Feature]: Easy way to ignore properties from schema generation without relying on Symfony's `#[Ignore]` attribute #2306

Open DominicLuidold opened 1 week ago

DominicLuidold commented 1 week ago

Description

In several of our projects, our DTOs often times contain properties that (for different reasons) should be exluded from the generated schema. It would be great to have an easy way, e.g. a Nelmio #[IgnoreFromSchema] attribute, to ignore those properties.

Possible solutions not working for us:

Additional context

/