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
E.g. x-codeSamples is a extension for OpenAPI, it is not standard.
x-codeSamples
There are some extension tags that very useful for generate docs from code. So it should be a new feature or just I missed something that can do this?
The text was updated successfully, but these errors were encountered:
Hi @ipfans, sorry for late reply.
Extensions can be added with Operation.WithMapOfAnything for a full map of extensions, or Operation.WithMapOfAnythingItem for a single item, or assigning directly to MapOfAnything property.
Operation.WithMapOfAnything
Operation.WithMapOfAnythingItem
MapOfAnything
Please note that functions With* are mutating original receiver.
With*
op.WithMapOfAnythingItem("x-codeSamples", CodeSample{Lang:"Go", Source:"a:=1"})
All the types that support x- extensions have these symbols available.
x-
Sorry, something went wrong.
@vearutop Thanks, I got it.
No branches or pull requests
E.g.
x-codeSamples
is a extension for OpenAPI, it is not standard.There are some extension tags that very useful for generate docs from code. So it should be a new feature or just I missed something that can do this?
The text was updated successfully, but these errors were encountered: