Replies: 6 comments
-
Well there is a vscode extension for spectral that I believe implements the LSP protocol https://github.com/stoplightio/vscode-spectral/tree/master/server |
Beta Was this translation helpful? Give feedback.
-
Oh interesting! I apparently missed it. What do you think about the idea of integrating the language server directly into Spectral? This way, any text editor / IDE supporting LSP could profit from it. And given that the hard work has already been done for the vscode extension, integrating the language server into Spectral should be straightforward. |
Beta Was this translation helpful? Give feedback.
-
@sebas2day that extension was deprecated, using old version from spectral, I compiled that to use with neovim. But I want a version with new one. |
Beta Was this translation helpful? Give feedback.
-
@luizcorreia I have no idea, I'm not a maintainer. |
Beta Was this translation helpful? Give feedback.
-
Showing support for this enhancement 👍 |
Beta Was this translation helpful? Give feedback.
-
The original issue has been turned into this discussion. Is it your way @mnaumanali94 to say that you're not planning on working on this feature request? |
Beta Was this translation helpful? Give feedback.
-
User story.
As a developer, I can use any source code editor or IDE supporting the Language Server Protocol (LSP) to get feedback from Spectral without having to run the CLI tool over and over.
Is your feature request related to a problem?
It is frustrating to have to regularly run the CLI tool to get linting information from Spectral whereas they could be displayed directly inside the source code editor / IDE (Vim in my case).
Describe the solution you'd like
Adding a language server to Spectral.
This way, Spectral would become the very first OpenAPI LSP as far as I know!
Additional context
Beta Was this translation helpful? Give feedback.
All reactions