Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServeYAML ¶
func ServeYAML(w http.ResponseWriter, spec []byte)
ServeYAML writes an embedded OpenAPI document with the standard YAML content type.
func ValidateResponse ¶
func ValidateResponse(doc *openapi3.T, method, path string, status int, body []byte, contentType string) error
ValidateResponse is a test/CI helper that checks an HTTP response body against the committed OpenAPI spec. It rebuilds routing state per call and is not intended for live request-path enforcement.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.