Code Monkey home page Code Monkey logo

Comments (5)

MikeRalphson avatar MikeRalphson commented on June 18, 2024

No, references should work wherever allowed by the spec. Can you share your files in a gist so I can debug?

from openapi-lint-vscode.

seahorseing-around avatar seahorseing-around commented on June 18, 2024

Afraid i can't share them - but i can try to recreate on an example - i'll see what i can do.

from openapi-lint-vscode.

MikeRalphson avatar MikeRalphson commented on June 18, 2024

Thanks. The extension uses the same libraries as boast in the swagger2openapi npm package. You could use that in verbose mode to see if there are any problems resolving your refs.

from openapi-lint-vscode.

seahorseing-around avatar seahorseing-around commented on June 18, 2024

SWAGGER Lint.zip

Sorry - not used Gist before and saw an easy attach here option - hope this is ok.

petstore_no_components.yaml presents an error:
image

If you uncomment the parameters block in petstore_no_components.yaml and switch the commented lines in the refs to use the local parameters all errors go, indicating the schemas references in the external file are resolving fine.

from openapi-lint-vscode.

MikeRalphson avatar MikeRalphson commented on June 18, 2024

I'll admit this is a little confusing in the current version. The message means the reference cannot be resolved as an internal reference. The command you need to use is "OpenAPI Resolve and Lint" if your API definition is made of multiple parts. I'll probably soon release a new version where this is the default behaviour anyway.

from openapi-lint-vscode.

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.