Documentation
¶
Index ¶
- func NormalizePath(path string) string
- func PathParams(path string) []string
- func RequestSchema(doc *openapi3.T, sample interface{}) *openapi3.SchemaRef
- func ResponseSchema(doc *openapi3.T, sample interface{}) *openapi3.SchemaRef
- func SchemaFrom(doc *openapi3.T, sample interface{}) *openapi3.SchemaRef
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizePath ¶
NormalizePath ensures the stored path matches OpenAPI style. It converts common router syntaxes:
/users/:id -> /users/{id}
/users/<id> -> /users/{id} (optional - not used today)
func PathParams ¶
PathParams extracts OpenAPI style path params from /users/{id}.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.