Core: Exclude property from generated documentation

Created on 5 Aug 2019  路  1Comment  路  Source: api-platform/core

I'm trying to exclude the property "password" from the generated documentation in the User model. Is their an attribute on @ApiProperty to remove the field from the doc gen ?

Most helpful comment

I was able to exclude it by adding @ApiProperty(readable=false, writable=false) on the password property

>All comments

I was able to exclude it by adding @ApiProperty(readable=false, writable=false) on the password property

Was this page helpful?
0 / 5 - 0 ratings