Comments (4)
I assume your first point refers to external references, and only those in that trigger the bug in your other issue (#21). If not, could you please elaborate?
As to your second point, there is no notion of a default behaviour in this extension, because the validate/lint/resolve functionality is all manually selected from the command palette. Users can select a shortcut for whichever behaviour they prefer or just reuse the most recent command.
The reason resolving was not folded into the earlier existing commands was to not change existing behaviour (for example if you are developing an OAS document but have not fleshed out the referenced files yet).
from openapi-lint-vscode.
Hmm, it must be another extension then that triggers the error. Sorry for the noise. I assumed this extension was running and linting my files automatically.
I appreciate the resolve for external references in your plugin, it stopped me from going insane.
from openapi-lint-vscode.
No there is definitely something wrong.
I disabled openapi-lint and i get no more openapi lint style errors when i save a file. I re-enabled it and disabled my one other openapi plug in, and if i save a file the lint errors appear.
For example:
!chgemail.yml API/v1/auth
component name invalid
gets listed in the Problems page when i save a file.
I can replicate this if i also run "OpenAPI Validate" manually. So it appears that yes, when I install and enable openapi-lint it is running a openapi validation on save (which is great) BUT its not resolving references, and it should.
Running OpenAPI Resolve and Validate manually reports the document is valid.
On save, if anything is run it should be "Resolve and Validate" it would be great to actually have an option to decide which is run on save "Validate". "Resolve and Validate", "Lint", "Resolve and Lint" or none.
from openapi-lint-vscode.
Ok, that sounds very reasonable.
from openapi-lint-vscode.
Related Issues (20)
- Unable to get intellisense unless rename to oas2.yaml HOT 3
- Doesn't work offline HOT 6
- Swagger 2.0 in openapi.yml validates against the incorrect spec HOT 1
- Enhancement: Validation & linting commands should integrate with the VSCode "problems" panel HOT 1
- Configurable names for OAS v3/v2 intellisense for files HOT 2
- Problem: String is not a URI: [UriError]: Scheme is missing HOT 3
- Not working with asyncapi file HOT 2
- references that contain ~0 or ~1 tokens fail lint
- $ref to adjacent_file object in #/components/parameters block not resolving HOT 5
- Extension causes high cpu load HOT 4
- On validate/lint errors the plugin crashes HOT 2
- Release version 1.3.0
- better error output in case the yaml could not be parsed
- Parsing and linting inline OpenAPI documentation HOT 3
- Remove or replace "*" in activationEvents
- Linter crashes with missing range
- multiple openapi.yaml files show errors HOT 9
- Reference path containing spaces can not be opened HOT 9
- OpenApi 3.x validation error when "servers" object is present HOT 16
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-lint-vscode.