eclipse / microprofile-open-api

Microprofile open api
Apache License 2.0
131 stars 81 forks source link

Tests for hidden schemas #525

Closed Azquelt closed 2 years ago

Azquelt commented 2 years ago

I wasn't hugely happy with this issue, the spec isn't clear what "hidden" means and it's hard to interpret for all the locations that the @Schema annotation could be applied. The lack of structure in the TCKs is also unhelpful in deciding how to add or structure a new set of tests.

In the end I've tested hidden = true in the scenarios listed above and required that the schema parameter is not present in the openapi document which seems reasonable, but it could also be tested in the following locations:

Fixes #508