Skip to content
#

oas

Here are 90 public repositories matching this topic...

travispamaral
travispamaral commented Nov 28, 2017

Hi there! I see that an issue #2884 deeplinking was integrated to 3.x however if I have a hyperlink with a hash to the operationID nothing happens on click. If I reload the page the UI scrolls to the open panel as expected. Is there something I am missing here? My url looks as follows and I am using the 3.0 dist repo installed via npm.

Again when clicked the URL address is updated but nothing h

spectral
rossmcdonald
rossmcdonald commented Jan 6, 2021

While not technically in violation of the OpenAPI specification, including a query parameter in a path should be flagged as an error in Spectral:

A path has specific meaning in HTTP as a part of a URL that comes after the host name and before the query string or fragment. A "path item" key must be only a path, it cannot have a query string or a fragment.

For example, the following when def

sondrelg
sondrelg commented Apr 19, 2020

Swagger 2.0 has a special file type, which resembles the string type: https://swagger.io/docs/specification/data-models/data-types/#file

The current response validation check for a file type is the same as a regular string:

if not isinstance(data, str) and data is not None:
    raise format_error(error_message=f'Mismatched types.', data=data, schema=schema, parent=parent)

Improve this page

Add a description, image, and links to the oas topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the oas topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.