sanic-openapi
sanic-openapi copied to clipboard
Easily document your Sanic API with a UI
Hi there! First of all many thanks for such awesome framework! Just installed python 3.10.1 and Sanic updated to 21.9.3 in my project. The very first run of pytest was...
**Describe the bug** The getting started example in the sanic-openapi docs does not appear to be working with the latest sanic version. It's giving duplicate route names error. I used...
When we have: ``` @component @dataclasses.dataclass class Location: x: int y: int @component @dataclasses.dataclass class UserProfile: name: str age: int email: str location: Location #Path ``` Location is define twice...
``` import dataclasses from sanic_ext.extensions.openapi import openapi @dataclasses.dataclass class Path: x: [float] y: [float] @property def reversed(self) -> "Path": # Recurses return Path( x=self.x[::-1], y=self.y[::-1], ) openapi.component(Path) # Infinite loop...