wI2L / fizz

:lemon: Gin wrapper with OpenAPI 3 spec generation
https://pkg.go.dev/github.com/wI2L/fizz
MIT License
214 stars 52 forks source link

Add x-internal #65

Closed nikicc closed 2 years ago

nikicc commented 2 years ago

This PR adds the support for marking the endpoints as x-internal, which is a mechanism for hiding endpoints in the rendered docs.

Background

Some docs rendering tools (e.g. ReDoc and Elements) support the functionality of the endpoints to be hidden from the docs, if they are marked as x-internal. The changes here add the support for x-internal.

nikicc commented 2 years ago

My bad. I accidentally opened a duplicate of #64.