inaka / cowboy_swagger

Swagger integration for Cowboy (built on trails)
http://inaka.net/blog/2015/08/19/cowboy-swagger/
Apache License 2.0
122 stars 58 forks source link

Allow per-path entries to be other things than maps #145

Closed richcarl closed 2 years ago

richcarl commented 2 years ago

The entries of a path are typically methods like "get": {...} but can also be path-global things such as "parameters": [...] Example:

    "/users/{id}": {
        "parameters": [
            { "in": "path",
              "name": "id",
              "required": "true",
              "type": "string",
              "description": "The user ID"
            }
        ],
        "get": {
            ...
        },
        "post": {
            ...
        }
    }
elbrujohalcon commented 2 years ago

Please merge from master to avoid CI issues.