Forum Discussion

jajohnson's avatar
jajohnson
New Contributor
3 years ago
Solved

id fields are automatically hidden

After updating to swagger.core 2.1.9 the "id" properties in the openAPI example and schema are no longer present. Any ideas as to why this is happening?

 

  • I changed the @Schema() annotation from the field to the get method and now it is picking the id's up again.

1 Reply

  • jajohnson's avatar
    jajohnson
    New Contributor

    I changed the @Schema() annotation from the field to the get method and now it is picking the id's up again.