dedoc/scramble

Incorrect position of parameter schema default

manuel-watchenterprise opened this issue · 1 comments

@romalytvynenko

The description of default of url parameters are generated on the wrong level. It should have been part of the schema descriptor but it's part of parameter's descriptor.

Current: (invalid)

"parameters": [
    {
        "name": "limit",
        "in": "query",
        "schema": {
            "type": "string"
        },
        "default": 10
    }
]

Correct:

"parameters": [
    {
        "name": "limit",
        "in": "query",
        "schema": {
            "type": "string",
            "default": 10
        }
    }
]

@manuel-watchenterprise what a great catch! Will fix!