I am using Swagger Swashbuckle to generate documentation. There are some methods in my controller and some properties in my models that I don't want to document. Is there any arrtibute or the property to leave or ignore specific methods from documentation?
In addition to c.IgnoreObsoleteActions()
, there is also c.IgnoreObsoleteProperties()
, which hides the property from the documentation.
JsonIgnoreAttribute
will stop the property deserializing when being received as part of a POST request body, which may not be what you want if you only wish to change the documentation and not the functionality.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With