GithubHelp home page GithubHelp logo

Comments (4)

adamaltman avatar adamaltman commented on July 16, 2024 3

This is confirmed fixed by #146 in 1.0.0-beta.1.

You will notice errors, but they aren't the 2xx issue, and it's related to falling back to our recommended configuration by default.

➜  bugs NO_COLOR=1 openapi lint issue-145.yaml
No configurations were defined in extends -- using built in recommended configuration by default.

validating issue-145.yaml...
[1] issue-145.yaml:1:1 at #/

Servers must be present.

 1 | openapi: 3.0.3
   | ^^^^^^^^^^^^^^
 2 | info:
   | ^^^^^
 … | < 23 more lines >
26 |   - name: Testing
   |   ^^^^^^^^^^^^^^^
27 |

Error was generated by the no-empty-servers rule.


[2] issue-145.yaml:17:5 at #/paths/~1

`/` should not have a trailing slash.

15 | paths:
16 |   /:
17 |     post:
   |     ^^^^^
18 |       operationId: successfulJsonResponse
   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 … |       < 5 more lines >
24 |
   | ^
25 | tags:
26 |   - name: Testing

Error was generated by the no-path-trailing-slash rule.


[3] issue-145.yaml:18:7 at #/paths/~1/post

Operation object should contain `summary` field.

16 |   /:
17 |     post:
18 |       operationId: successfulJsonResponse
   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19 |       responses:
   |       ^^^^^^^^^^
 … |       < 4 more lines >
24 |
   | ^
25 | tags:
26 |   - name: Testing

Error was generated by the operation-summary rule.


[4] issue-145.yaml:3:3 at #/info

Info object should contain `description` field.

1 | openapi: 3.0.3
2 | info:
3 |   title: Testing API
  |   ^^^^^^^^^^^^^^^^^^
4 |   version: 1.0.0
  |   ^^^^^^^^^^^^^^
5 |
6 | components:

Warning was generated by the info-description rule.


[5] issue-145.yaml:3:3 at #/info

Info object should contain `license` field.

1 | openapi: 3.0.3
2 | info:
3 |   title: Testing API
  |   ^^^^^^^^^^^^^^^^^^
4 |   version: 1.0.0
  |   ^^^^^^^^^^^^^^
5 |
6 | components:

Warning was generated by the info-license rule.


[6] issue-145.yaml:26:5 at #/tags/0

Tag object should contain `description` field.

24 |
25 | tags:
26 |   - name: Testing
   |     ^^^^^^^^^^^^^
27 |

Warning was generated by the tag-description rule.


issue-145.yaml: validated in in 46ms

❌ Validation failed with 3 errors and 3 warnings.

run with `--generate-ignore-file` to add all problems to ignore file.

from redocly-cli.

RomanHotsiy avatar RomanHotsiy commented on July 16, 2024 1

Thanks for reporting! We are aware. This will be fixed as part of #146

from redocly-cli.

RomanHotsiy avatar RomanHotsiy commented on July 16, 2024 1
[2] issue-145.yaml:17:5 at #/paths/~1

`/` should not have a trailing slash.

15 | paths:
16 |   /:
17 |     post:
   |     ^^^^^
18 |       operationId: successfulJsonResponse
   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 … |       < 5 more lines >
24 |
   | ^
25 | tags:
26 |   - name: Testing

Error was generated by the no-path-trailing-slash rule.

I think this is another issue. I've opened a separate issue: #161

from redocly-cli.

rohit-gohri avatar rohit-gohri commented on July 16, 2024

I'm having the same problem

from redocly-cli.

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.