Skip to content

Add new route

Add new route #32

Triggered via pull request September 8, 2023 17:21
Status Failure
Total duration 1m 26s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

spectral.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 53 warnings, and 16 notices
status-code-401: spec/petStore.json#L25
A 401 status code is returned when authentication fails.
description-for-every-attribute: spec/petStore.json#L49
For every attribute that is present in the OAS document, if a description is proposed as optional to complement that attribute, then yes it must be present; description is missing in the object
status-code-403: spec/petStore.json#L59
A 403 status code is returned if a consumer is not authorized to access an operation.
description-for-every-attribute: spec/petStore.json#L92
For every attribute that is present in the OAS document, if a description is proposed as optional to complement that attribute, then yes it must be present; description is missing in the object
status-code-403: spec/petStore.json#L102
A 403 status code is returned if a consumer is not authorized to access an operation.
status-code-401: spec/petStore.json#L102
A 401 status code is returned when authentication fails.
examples-for-every-schema: spec/petStore.json#L63
For every schema provided in the OAS document, at least one example must be present; example or examples is missing in the object
status-code-403: spec/petStore.json#L25
A 403 status code is returned if a consumer is not authorized to access an operation.
status-code-401: spec/petStore.json#L59
A 401 status code is returned when authentication fails.
lint
fatal issues detected. Failing the process.
oas3-get-collection-max-parameter-link-header-required-possible: spec/petStore.json#L26
Pagination is designed using a 'max' query parameter and 'Link' headers per RFC 5988.; When returning a paginated collection, include a "Link" header in the response
tracking-id-header-requirement: spec/petStore.json#L26
All responses must include a 'TrackingID' header.
oas3-get-collection-max-parameter-link-header-required-possible: spec/petStore.json#L22
Pagination is designed using a 'max' query parameter and 'Link' headers per RFC 5988.; When returning a paginated collection, include a "max" query parameter
oas3-https-only: spec/petStore.json#L17
My API supports HTTPS only.; "http://pet-store-kong-3abae03b4c44.herokuapp.com/v1" must match the pattern "^https://"
post-header-location: spec/petStore.json#L62
POST operations that create resources should include a Location header.; "headers.Location" property must be truthy
error-status-code: spec/petStore.json#L25
There should be at least one error status code either 4xx or 5xx.; none of /^4\d{2}$/,/^5\d{2}$/,/^default$/ are matched
tracking-id-header-requirement: spec/petStore.json#L60
All responses must include a 'TrackingID' header.
oas3-get-collection-max-parameter-link-header-required-possible: spec/petStore.json#L168
Pagination is designed using a 'max' query parameter and 'Link' headers per RFC 5988.; When returning a paginated collection, include a "Link" header in the response
oas3-get-collection-max-parameter-link-header-required-possible: spec/petStore.json#L22
Pagination is designed using a 'max' query parameter and 'Link' headers per RFC 5988.; When supporting offset-based pagination, operations include a "offset" query parameter
oas3-error-response-identifier: spec/petStore.json#L186
Error representations include an identifier to help with troubleshooting.
oas3-get-collection-max-parameter-link-header-required-likely: spec/petStore.json#L168
Pagination is designed using a 'max' query parameter and 'Link' headers per RFC 5988.; When returning a paginated collection, include a "Link" header in the response
tracking-id-header-requirement: spec/petStore.json#L168
All responses must include a 'TrackingID' header.
oas3-get-collection-max-parameter-link-header-required-likely: spec/petStore.json#L22
Pagination is designed using a 'max' query parameter and 'Link' headers per RFC 5988.; When returning a paginated collection, include a "max" query parameter
oas3-get-collection-max-parameter-link-header-required-likely: spec/petStore.json#L26
Pagination is designed using a 'max' query parameter and 'Link' headers per RFC 5988.; When returning a paginated collection, include a "Link" header in the response
tracking-id-header-requirement: spec/petStore.json#L186
All responses must include a 'TrackingID' header.
error-status-code: spec/petStore.json#L102
There should be at least one error status code either 4xx or 5xx.; none of /^4\d{2}$/,/^5\d{2}$/,/^default$/ are matched
oas3-error-message: spec/petStore.json#L223
Error representations include a useful human-readable message.
oas3-error-response-identifier: spec/petStore.json#L223
Error representations include an identifier to help with troubleshooting.
oas3-error-message: spec/petStore.json#L186
Error representations include a useful human-readable message.
oas3-error-message: spec/petStore.json#L305
Error representations include a useful human-readable message.
tracking-id-header-requirement: spec/petStore.json#L223
All responses must include a 'TrackingID' header.
tracking-id-header-requirement: spec/petStore.json#L287
All responses must include a 'TrackingID' header.
tracking-id-header-requirement: spec/petStore.json#L342
All responses must include a 'TrackingID' header.
oas3-error-response-identifier: spec/petStore.json#L342
Error representations include an identifier to help with troubleshooting.
oas3-error-message: spec/petStore.json#L430
Error representations include a useful human-readable message.
tracking-id-header-requirement: spec/petStore.json#L665
All responses must include a 'TrackingID' header.
oas3-error-message: spec/petStore.json#L342
Error representations include a useful human-readable message.
oas3-error-response-identifier: spec/petStore.json#L430
Error representations include an identifier to help with troubleshooting.
put-200-204-success: spec/petStore.json#L514
PUT operations return either '200 OK' with full representation or '204 No Content'.
tracking-id-header-requirement: spec/petStore.json#L565
All responses must include a 'TrackingID' header.
oas3-error-response-identifier: spec/petStore.json#L305
Error representations include an identifier to help with troubleshooting.
oas3-error-response-identifier: spec/petStore.json#L688
Error representations include an identifier to help with troubleshooting.
oas3-error-message: spec/petStore.json#L725
Error representations include a useful human-readable message.
tracking-id-header-requirement: spec/petStore.json#L305
All responses must include a 'TrackingID' header.
tracking-id-header-requirement: spec/petStore.json#L542
All responses must include a 'TrackingID' header.
tracking-id-header-requirement: spec/petStore.json#L467
All responses must include a 'TrackingID' header.
oas3-error-response-identifier: spec/petStore.json#L467
Error representations include an identifier to help with troubleshooting.
oas3-error-message: spec/petStore.json#L467
Error representations include a useful human-readable message.
oas3-error-response-identifier: spec/petStore.json#L602
Error representations include an identifier to help with troubleshooting.
oas3-error-response-identifier: spec/petStore.json#L725
Error representations include an identifier to help with troubleshooting.
tracking-id-header-requirement: spec/petStore.json#L407
All responses must include a 'TrackingID' header.
oas3-error-message: spec/petStore.json#L565
Error representations include a useful human-readable message.
post-header-location: spec/petStore.json#L289
POST operations that create resources should include a Location header.; "headers.Location" property must be truthy
tracking-id-header-requirement: spec/petStore.json#L430
All responses must include a 'TrackingID' header.
oas3-error-message: spec/petStore.json#L602
Error representations include a useful human-readable message.
tracking-id-header-requirement: spec/petStore.json#L103
All responses must include a 'TrackingID' header.
oas3-error-message: spec/petStore.json#L688
Error representations include a useful human-readable message.
tracking-id-header-requirement: spec/petStore.json#L725
All responses must include a 'TrackingID' header.
tracking-id-header-requirement: spec/petStore.json#L602
All responses must include a 'TrackingID' header.
tracking-id-header-requirement: spec/petStore.json#L688
All responses must include a 'TrackingID' header.
oas3-error-response-identifier: spec/petStore.json#L565
Error representations include an identifier to help with troubleshooting.
error-status-code: spec/petStore.json#L59
There should be at least one error status code either 4xx or 5xx.; none of /^4\d{2}$/,/^5\d{2}$/,/^default$/ are matched
lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-***/
no-etag-cache-control-header-required: spec/petStore.json#L344
Where caching is not appropriate, operations must include a Cache-Control header (e.g. max-age=0, no-cache, no-store, must-revalidate) and must not include an ETag header.; "headers.Cache-Control" property must be truthy
no-etag-cache-control-header-required: spec/petStore.json#L170
Where caching is not appropriate, operations must include a Cache-Control header (e.g. max-age=0, no-cache, no-store, must-revalidate) and must not include an ETag header.; "headers.Cache-Control" property must be truthy
no-etag-cache-control-header-required: spec/petStore.json#L62
Where caching is not appropriate, operations must include a Cache-Control header (e.g. max-age=0, no-cache, no-store, must-revalidate) and must not include an ETag header.; "headers.Cache-Control" property must be truthy
no-etag-cache-control-header-required: spec/petStore.json#L188
Where caching is not appropriate, operations must include a Cache-Control header (e.g. max-age=0, no-cache, no-store, must-revalidate) and must not include an ETag header.; "headers.Cache-Control" property must be truthy
no-etag-cache-control-header-required: spec/petStore.json#L289
Where caching is not appropriate, operations must include a Cache-Control header (e.g. max-age=0, no-cache, no-store, must-revalidate) and must not include an ETag header.; "headers.Cache-Control" property must be truthy
no-etag-cache-control-header-required: spec/petStore.json#L307
Where caching is not appropriate, operations must include a Cache-Control header (e.g. max-age=0, no-cache, no-store, must-revalidate) and must not include an ETag header.; "headers.Cache-Control" property must be truthy
no-etag-cache-control-header-required: spec/petStore.json#L225
Where caching is not appropriate, operations must include a Cache-Control header (e.g. max-age=0, no-cache, no-store, must-revalidate) and must not include an ETag header.; "headers.Cache-Control" property must be truthy
no-etag-cache-control-header-required: spec/petStore.json#L432
Where caching is not appropriate, operations must include a Cache-Control header (e.g. max-age=0, no-cache, no-store, must-revalidate) and must not include an ETag header.; "headers.Cache-Control" property must be truthy
no-etag-cache-control-header-required: spec/petStore.json#L409
Where caching is not appropriate, operations must include a Cache-Control header (e.g. max-age=0, no-cache, no-store, must-revalidate) and must not include an ETag header.; "headers.Cache-Control" property must be truthy
no-etag-cache-control-header-required: spec/petStore.json#L604
Where caching is not appropriate, operations must include a Cache-Control header (e.g. max-age=0, no-cache, no-store, must-revalidate) and must not include an ETag header.; "headers.Cache-Control" property must be truthy
no-etag-cache-control-header-required: spec/petStore.json#L667
Where caching is not appropriate, operations must include a Cache-Control header (e.g. max-age=0, no-cache, no-store, must-revalidate) and must not include an ETag header.; "headers.Cache-Control" property must be truthy
no-etag-cache-control-header-required: spec/petStore.json#L690
Where caching is not appropriate, operations must include a Cache-Control header (e.g. max-age=0, no-cache, no-store, must-revalidate) and must not include an ETag header.; "headers.Cache-Control" property must be truthy
no-etag-cache-control-header-required: spec/petStore.json#L567
Where caching is not appropriate, operations must include a Cache-Control header (e.g. max-age=0, no-cache, no-store, must-revalidate) and must not include an ETag header.; "headers.Cache-Control" property must be truthy
no-etag-cache-control-header-required: spec/petStore.json#L544
Where caching is not appropriate, operations must include a Cache-Control header (e.g. max-age=0, no-cache, no-store, must-revalidate) and must not include an ETag header.; "headers.Cache-Control" property must be truthy
no-etag-cache-control-header-required: spec/petStore.json#L469
Where caching is not appropriate, operations must include a Cache-Control header (e.g. max-age=0, no-cache, no-store, must-revalidate) and must not include an ETag header.; "headers.Cache-Control" property must be truthy
no-etag-cache-control-header-required: spec/petStore.json#L727
Where caching is not appropriate, operations must include a Cache-Control header (e.g. max-age=0, no-cache, no-store, must-revalidate) and must not include an ETag header.; "headers.Cache-Control" property must be truthy