You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the config in the zip against the api with out the spectral config I get the following
cminion@random:~/src/tmp$ !l
lint-openapi api-with-examples.yaml -s
warnings
Message : OpenAPI `host` must be present and non-empty string.
Path :
Line : 0
Message : OpenAPI host `schemes` must be present and non-empty array.
Path :
Line : 0
Message : OpenAPI object should have non-empty `tags` array.
Path :
Line : 0
Message : Operation `description` must be present and non-empty string.
Path : paths./.get
Line : 7
Message : Operation should have non-empty `tags` array.
Path : paths./.get
Line : 7
Message : Operation `description` must be present and non-empty string.
Path : paths./v2.get
Line : 76
Message : Operation should have non-empty `tags` array.
Path : paths./v2.get
Line : 76
Message : operationIds must follow case convention: lower_snake_case
Path : paths./.get.operationId
Line : 8
Message : operationIds must follow case convention: lower_snake_case
Path : paths./v2.get.operationId
Line : 77
statistics
Total number of errors : 0
Total number of warnings : 9
warnings
1 (11%) : OpenAPI `host` must be present and non-empty string.
1 (11%) : OpenAPI host `schemes` must be present and non-empty array.
1 (11%) : OpenAPI object should have non-empty `tags` array.
2 (22%) : Operation `description` must be present and non-empty string.
2 (22%) : Operation should have non-empty `tags` array.
2 (22%) : operationIds must follow case convention
When I run it with the spectral in the zip I get the following
cminion@random:~/src/tmp$ !li
lint-openapi api-with-examples.yaml -s
Function 'oasResponseHasExample' could not be loaded: Not Found
errors
Message : 'produces' object should contain the value 'application'
Path : paths./.get.produces.0
Line : 11
Message : 'produces' object should contain the value 'application'
Path : paths./v2.get.produces.0
Line : 80
warnings
Message : operationIds must follow case convention: lower_snake_case
Path : paths./.get.operationId
Line : 8
Message : operationIds must follow case convention: lower_snake_case
Path : paths./v2.get.operationId
Line : 77
statistics
Total number of errors : 2
Total number of warnings : 2
errors
2 (100%) : 'produces' object should contain the value 'application'
warnings
2 (100%) : operationIds must follow case convention
cminion@random:~/src/tmp$ ls -lart
total 28
-rwxrwxrwx 1 cminion cminion 2868 Sep 28 15:55 .validaterc
drwxrwxrwx 1 cminion cminion 4096 Sep 29 20:07 ..
-rwxrwxrwx 1 cminion cminion 6103 Sep 30 20:53 api-with-examples.yaml.old
-rwxrwxrwx 1 cminion cminion 1464 Sep 30 20:54 .spectral.json
-rwxrwxrwx 1 cminion cminion 6101 Sep 30 20:54 api-with-examples.yaml
-rwxrwxrwx 1 cminion cminion 3352 Sep 30 20:57 demo.zip
drwxrwxrwx 1 cminion cminion 4096 Sep 30 20:58 .
cminion@random:~/src/tmp$
I would expect all the warnings in the first run to be present in the secondrun lint.zip
The text was updated successfully, but these errors were encountered:
I appreciate this is beta functionality.
When running the config in the zip against the api with out the spectral config I get the following
When I run it with the spectral in the zip I get the following
I would expect all the warnings in the first run to be present in the secondrun
lint.zip
The text was updated successfully, but these errors were encountered: