sanic-org / sanic-ext

Extended Sanic functionality
https://sanic.dev/en/plugins/sanic-ext/getting-started.html
MIT License
50 stars 36 forks source link

[Bug] Wrong default variables type of Server object. #214

Closed cansarigol closed 11 months ago

cansarigol commented 1 year ago

Describe the bug Since variables default value is array, swagger schema validations complain that it should be dict

Screenshots image

Expected behavior Make variables object

super().__init__(
    url=url, description=description, variables=variables or {}
)

https://github.com/sanic-org/sanic-ext/blob/75331cd502795e45f99533f184da33017093fdda/sanic_ext/extensions/openapi/definitions.py#L355

Environment (please complete the following information):