Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

linter-swagger throwing error #104

Open
fgysin opened this issue Jul 17, 2019 · 1 comment
Open

linter-swagger throwing error #104

fgysin opened this issue Jul 17, 2019 · 1 comment

Comments

@fgysin
Copy link

fgysin commented Jul 17, 2019

I installed tried to use Atom to work on OpenAPI spec files, but couldn't get it to work...
Whenever I work on my YAML spec files the linter doesn't show any errors.

Atom version: 1.38 x64

Packages I have installed:

  • linter 2.3.0
  • linter-swagger 0.6.1
  • linter-ui-default 1.7.1
  • linter-javac (to check if linter is working at all)
  • intentions, busy-signal (both seem to be dependencies of some of the above)

I was able to verify that linting works generally: I created a small Java file and any errors in there are recognised as expected.

Here is the OpenAPI file that I tried (this is the complete file) - it is called test.yaml.

openapi: 3.0.2
info:
  title: Foobar Service
  description: Some description
  version: 0.0.1
  contact:
    name: Foobar
    url: https://foobar.com
    email: [email protected]

--> There is plenty of stuff missing for this to be valid OAS3, so I'd expect the linter to trigger somehow. (I also tried mangling the file in other ways, e.g. remove the version field, which is also invalid and should trigger the linter.)

As I have read in other places that sometimes the linter wasn't triggering because it didn't recognise the fiel as Swagger/OAS I have also tried to add swagger: 2.0, or add single or double quotation marks for the openapi field - to no avail....

What can I do to make linter-swagger work?

@adlerfaulkner
Copy link

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants