Comments (2)
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.
Please note that functions With*
are mutating original receiver.
op.WithMapOfAnythingItem("x-codeSamples", CodeSample{Lang:"Go", Source:"a:=1"})
All the types that support x-
extensions have these symbols available.
from openapi-go.
@vearutop Thanks, I got it.
from openapi-go.
Related Issues (20)
- Error with UnmarshalYAML() using http/bearer auth scheme HOT 9
- I notice the code in readme that "reflector.SetRequest is deprecated" HOT 1
- Support OAS3.1 ? HOT 5
- Is there any support for oneOf, anyOf etc... If so how would we do it HOT 1
- How would you set a field as required? HOT 3
- XML Response Supprt
- Pointer primitives does not end up nullable
- Improving the regular expression used to remove gorilla.mux-style regexp in paths HOT 3
- pathItem has a wrong key when using regexes. HOT 1
- Security schemes validation error HOT 2
- [Question] Is there a way to select if a struct schema is a ref or not ? HOT 3
- How to use custom x- tags in a schema HOT 3
- Changes to UUID schema generation HOT 6
- req/resp struct using generic could cause semantic error in openapi output HOT 4
- Doc page gets 404 when getting swagger-ui assets HOT 9
- Better discriminator support? HOT 1
- Issue with self-referencing entites HOT 1
- Suggestion: support exported `json:`-tag-less fields to fully reflect / align-with Go's actual `json.Marshal` behavior HOT 4
- Method designed without params/placeholders throws "missing path parameter placeholder in url"? HOT 3
- Set response and request schemas without declared structure? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openapi-go.