Giter VIP home page Giter VIP logo

Comments (6)

MikeRalphson avatar MikeRalphson commented on May 14, 2024 1

OAI/OpenAPI-Specification#1270

from oas-kit.

MikeRalphson avatar MikeRalphson commented on May 14, 2024 1

Yes, with the PR still being a work-in-progress, not all of the comments have been incorporated yet. In addition, the schema here has a bunch of descriptions ported over from OAI/OpenAPI-Specification#1236

from oas-kit.

MikeRalphson avatar MikeRalphson commented on May 14, 2024 1

The fix to the schema has been included in swagger2openapi v3.0.x. Thanks for your patience.

from oas-kit.

MikeRalphson avatar MikeRalphson commented on May 14, 2024

Thanks for raising the issue and including an example.

The problem was actually in the OAS draft schema (which the validator uses as a fallback).

The openIdConnectUrl was defined as:

                 },
                 "openIdConnectUrl": {
                    "type": "string",
                    "format": "url"
                 },

When it should have been format: uriref.

This explains the similar behaviour of swagger-editor / swagger-ui - they are presumably using the same schema to drive validation, though I believe they are not using this project's (hand written) validator.

We are waiting on a dependency to come out of beta before cutting a new release, but if your requirement is urgent I can go back to the 2.11.x branch and make a patch. Please let me know.

from oas-kit.

jblazek avatar jblazek commented on May 14, 2024

This is not urgent for me, I can possibly use an absolute URL for now, or just wait until it is fixed to switch from my current security scheme to openIdConnect.

You mentioned the 'OAS draft schema', where is that located?

from oas-kit.

jblazek avatar jblazek commented on May 14, 2024

I looked at that PR, and it looks like this comment also called out the format mismatch, but must have been missed.

OAI/OpenAPI-Specification#1270 (comment)

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.