Skip to content
#

openapi-specification

Here are 163 public repositories matching this topic...

amaurer
amaurer commented Jun 11, 2018

Is there any documentation regarding CORS preflight requests? Seems like these should automatically be configured based on the swagger definition.

I'm looking to return the verbs defined in swagger for my resources (paths) but I can't even find how to control "preFlightContinue" option.

Thanks in advance.

rochacbruno
rochacbruno commented Mar 11, 2020

Copied from #103

I've resolved the issue of authentication using the next code:
swagger_template = { ..., 'securityDefinitions': { 'basicAuth': { 'type': 'basic' } }, ... }
app = Flask(__name__)
Swagger(app, config=config[config_name].swagger_config, template=swagger_template)

![image](https://use

phr34k
phr34k commented Mar 28, 2020

I'm new to rest_framework but I'm using drf in combination with redoc and this library and it seems to work fantastic.

I was wondering how can I generate custom sections of the documentation for objects that are commonly reused across all API calls. For example, I have a token object that is query/post parameter so I would like this to be explained topic in its own section.

With the help of

spectral
nulltoken
nulltoken commented Apr 16, 2020

Chore summary
Provide some guidance to the custom function writer with regards to errors

Tasks

  • Add a section to functions.md

From https://github.com/stoplightio/spectral/pull/1058/files#r408418822

@P0lip What's the effect from throwing from within a function? Does the whole process crash down? Do we get a special kind of result or a console log?

We'd get a console.l

jacek99
jacek99 commented Feb 19, 2020

One of the most frustrating aspects of Swagger 2 annotations is the removal of the class-level @Api annotation, which was logical, clear and easy to understand.

Can you please update the Petstore example to clearly show how to group related REST operations together. I looked at the Resource classes and there are no annotations at the class level whatsoever.

MikeRalphson
MikeRalphson commented Jan 19, 2019
  • Guidance on adding a linter new rule-action (if none of the existing ones can perform the action, or be extended)
  • Expand on guidelines re: keeping commits to logical areas of the code / individual packages where possible
  • Use of conventional-commit standard going forward
  • Advice not to include any package-lock.json changes PRs, for security reasons. File will be regene
dsnkostic
dsnkostic commented Jun 19, 2019

In our project we have need to pass Request object to our controller. This is the routes file
POST /check controllers.CheckConotroller.checkStatus(request: Request)
Swagger is generating this output for the parameters object:
`
"parameters": [
{
"name": "request",
"in": "query",

h2non
h2non commented Feb 7, 2019

Only HTTP API docs solves part of the problem for most users. What about rending code examples in different languages.

I'm currently using ReDoc which provides such feature taking code examples from OpenAPI x-examples fields.

Are you guys planning to support a similar feature? It would be great for the Developer Experience.

Kjens93
Kjens93 commented Mar 26, 2020

We are using this library to power a GitHub Action that generates a backward compatibility report between two versions of an OpenAPI spec. We love this library, but it is not clear what changes are detectable by this library, and what changes this library classifies as "breaking" or "non-breaking" changes. It would be really valuable to us if this repo could include a markdown file outlining all t

eoftedal
eoftedal commented Dec 12, 2017

Steps to reproduce:

  1. Download http://petstore.swagger.io/v2/swagger.json
  2. Open swagger.json in Swagger Parser
  3. Find the POST /pet endpoint and click "send to repeater"
POST /v2/pet HTTP/1.1
Host: petstore.swagger.io
Accept: application/xml, application/json
Content-Type: application/json, application/xml

id={integer}&id={integer}&name={string}&name={string}&photoUrls={array}

Improve this page

Add a description, image, and links to the openapi-specification 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 openapi-specification topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.