Comments (4)
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.
Thanks for reporting! We are aware. This will be fixed as part of #146
from redocly-cli.
[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.
I'm having the same problem
from redocly-cli.
Related Issues (20)
- asyncapi lint support custom rules HOT 8
- Can't resolve remote $ref with query parameter HOT 3
- OAS 3.1 - arbitrary schema keywords are classified as lint errors HOT 3
- Missing const typing support HOT 2
- bug: inconsistent types for OAS3_1 schemas HOT 1
- Add some type of plugin to allow dynamic definition of extensions or config files HOT 2
- Support better means to set environment variables HOT 4
- dependentRequired is valid json schema but does not pass linting and prevents component from being available in UI. HOT 5
- Api HOT 2
- Add the `--ext` parameter to the `split` command HOT 1
- Running out of CPU inside of containers HOT 3
- join fails on commonly referenced components HOT 4
- Redocly removing string for enums if there's non-numbers mixed in HOT 3
- Ability to exclude some operations from security-defined rule HOT 4
- `remove-unused-components` removes used `securityDefinitions` from `Swagger 2.0` specifications HOT 1
- "join" remove extension properties under path property HOT 3
- Add option `--prefix-components-with-filepath` to `join` HOT 2
- Add `output` as a per-API configuration option
- Document behaviour of lint cli args after `--` HOT 3
- Configure object order for redocly bundle command HOT 2
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 redocly-cli.