Coder Social home page Coder Social logo

Comments (19)

vad avatar vad commented on May 16, 2024 1

I don't understand how to use this... I don't see any reference in the specification

from openapi-specification.

Siva avatar Siva commented on May 16, 2024

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.

fehguy avatar fehguy commented on May 16, 2024

We're working on this for the 2.0 spec right now.

from openapi-specification.

fehguy avatar fehguy commented on May 16, 2024

and thanks @vlcinsky for putting down all these thoughts.

from openapi-specification.

Siva avatar Siva commented on May 16, 2024

Awesome. thanks! Any idea when 2.0 spec will be out?

from openapi-specification.

fehguy avatar fehguy commented on May 16, 2024

july :)

from openapi-specification.

Siva avatar Siva commented on May 16, 2024

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.

fehguy avatar fehguy commented on May 16, 2024

Hi, we're just about there--might be a week behind but it's worth the wait.

from openapi-specification.

Siva avatar Siva commented on May 16, 2024

Great thank you!!!

from openapi-specification.

webron avatar webron commented on May 16, 2024

This has been added to Swagger 2.0.

from openapi-specification.

webron avatar webron commented on May 16, 2024

@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.

gmannos avatar gmannos commented on May 16, 2024

@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.

Nouhi avatar Nouhi commented on May 16, 2024

@fehguy is there any news regarding this issue it's seems to be closed but the functionality isn't available

from openapi-specification.

foragerr avatar foragerr commented on May 16, 2024

@webron @fehguy Any updates on request example documentation?

from openapi-specification.

webron avatar webron commented on May 16, 2024

@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.

foragerr avatar foragerr commented on May 16, 2024

Thanks @webron ! Is that how you do this?

What is the vendor-extension called?

from openapi-specification.

webron avatar webron commented on May 16, 2024

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.

marians avatar marians commented on May 16, 2024

Just to get this right, describing request examples is not part of the 2.0 spec?

from openapi-specification.

darrelmiller avatar darrelmiller commented on May 16, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.