Giter Site home page Giter Site logo

Comments (4)

MikeRalphson avatar MikeRalphson commented on June 2, 2024

By default swagger2openapi follows the OpenAPI 2.0 / 3.0 spec which says that all other properties which are siblings to a $ref are ignored.

There is an option (CLI and programmatic) called refSiblings which defines the mode to handle $ref's with sibling properties, the valid values are remove (the default), preserve, and allOf, the last of which wraps the $ref and the sibling properties into an allOf array.

I don't know if Redoc specifies or exposes this option, or even if it uses a version of swagger2openapi recent enough to have it. Maybe @RomanHotsiy knows off-hand?

from oas-kit.

MikeRalphson avatar MikeRalphson commented on June 2, 2024

refSiblings was introduced in swagger2openapi v5.0.0, and Redoc uses v7.0.6 so it could make use of this feature. https://github.com/Redocly/redoc/search?q=refSiblings shows it doesn't alter the default.

from oas-kit.

RomanHotsiy avatar RomanHotsiy commented on June 2, 2024

@davetransom open an issue in Redoc repo plz. I believe we don't use refSiblings flag.

@MikeRalphson I think you can close this.

from oas-kit.

MikeRalphson avatar MikeRalphson commented on June 2, 2024

Thanks both!

from oas-kit.

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.