Comments (19)
I don't understand how to use this... I don't see any reference in the specification
from openapi-specification.
HI, I see this a very useful feature for our project documentation. Any idea when this can be included in the spec?
from openapi-specification.
We're working on this for the 2.0 spec right now.
from openapi-specification.
and thanks @vlcinsky for putting down all these thoughts.
from openapi-specification.
Awesome. thanks! Any idea when 2.0 spec will be out?
from openapi-specification.
july :)
from openapi-specification.
Hi, I wanted to ping and check on the status of 2.0 spec since we are getting near the end of july. Are you guys still planning on releasing this july? Appreciate your help.
BTW we already started using the spec recently. You guys are doing great job with spec and it really helped us a lot on documenting our services. great work. Kudos!!!
from openapi-specification.
Hi, we're just about there--might be a week behind but it's worth the wait.
from openapi-specification.
Great thank you!!!
from openapi-specification.
This has been added to Swagger 2.0.
from openapi-specification.
@vad - for responses, check out https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#responseExamples. For requests, watch out for a more elaborate explanation in the upcoming weeks.
from openapi-specification.
@webron @vlcinsky - Any update for request example thing?
another question - is basePathExamples not going to be used now ? as i saw for response, example can be published in 'elements' filed of Response Object.
from openapi-specification.
@fehguy is there any news regarding this issue it's seems to be closed but the functionality isn't available
from openapi-specification.
@webron @fehguy Any updates on request example documentation?
from openapi-specification.
@foragerr it's not supported explicitly at the current version but is under discussion for the next version. We introduced a vendor extension in swagger-ui to support it, but it's not an official part of the spec.
from openapi-specification.
Thanks @webron ! Is that how you do this?
What is the vendor-extension called?
from openapi-specification.
No, that's just derived from the 'example' in model definitions that exists today. For body
parameters it is called x-examples
, for others x-example
.
from openapi-specification.
Just to get this right, describing request examples is not part of the 2.0 spec?
from openapi-specification.
@marians You can put an example on a schema that is used by a body
parameter. So it is possible, but parameter objects do not support example objects directly in 2.0.
from openapi-specification.
Related Issues (20)
- Why does the JSON schema for 3.0 specify patternProperties for component names but allows additional properties?
- Support for `multipart/mixed` (and possibly better `multipart/*` support in general) HOT 5
- `description`/`summary` for Paths Object
- Support `multipart/byteranges` for 206 responses
- Support application/json-seq and similar JSON-based sequential formats HOT 1
- Did we break 3.2 compatibility by removing the Path Item $ref special case? HOT 12
- pipeDelimited and spaceDelimited style examples can be unresolvable HOT 10
- Encoding Object `contentType` field: "comma-separated list of the two types"? HOT 7
- Add appendix "Informative references" to published spec documents HOT 4
- Open Community (TDC) Meeting, Thursday 02 May 2024 HOT 3
- How are conflicts between `allowReserved` and RFC 3986 handled? HOT 6
- "body parameter" example in 3.x does not fit how Request Body Objects work HOT 6
- Open Community (TDC) Meeting, Thursday 09 May 2024 HOT 2
- Establish governance docs for working groups
- Codify the meaning of "undefined" and "implementation-defined" HOT 2
- Use URI references for Security Requirements in 3.2
- remove "Optional OAuth2 security" examples HOT 2
- Style guide for the specification HOT 2
- Behavior of `allowEmptyValue: false` HOT 4
- Open Community (TDC) Meeting, Thursday 16 May 2024 HOT 1
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-specification.