We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If a schema like
components: schemas: CreateSomethingRequest: type: object required: - something properties: something: type: number example: 1 x-oapi-codegen-extra-tags: validate: gte=0
was required, how can this x-oapi-codegen-extra-tags field be specified?
The text was updated successfully, but these errors were encountered:
Types that allow custom extensions (x-), usually have a WithMapOfAnythingItem method available (like this).
x-
WithMapOfAnythingItem
Sorry, something went wrong.
perfect - thank you for the prompt response
For openapi31 operations you would do:
oc, err := reflector.NewOperationContext(http.MethodGet, "/api/v4/endpoint/{id}") oc.(openapi31.OperationExposer).Operation().WithMapOfAnythingItem("x-api-name", "getEndpointByID")
No branches or pull requests
If a schema like
components:
schemas:
CreateSomethingRequest:
type: object
required:
- something
properties:
something:
type: number
example: 1
x-oapi-codegen-extra-tags:
validate: gte=0
was required, how can this x-oapi-codegen-extra-tags field be specified?
The text was updated successfully, but these errors were encountered: