sanic-ext icon indicating copy to clipboard operation
sanic-ext copied to clipboard

Extended Sanic functionality

Results 57 sanic-ext issues
Sort by recently updated
recently updated
newest added

Previously, only status, headers, and content type are passed to the final rendered response. After this change, the LazyResponse is preserved and only has its body changed after rendering. This...

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...

The version sanic-ext-23.12.0 [Bug] Extend(app) File "/usr/local/lib/python3.9/site-packages/sanic_ext/bootstrap.py", line 112, in __init__ extension._startup(self) File "/usr/local/lib/python3.9/site-packages/sanic_ext/extensions/base.py", line 45, in _startup self.startup(bootstrap) File "/usr/local/lib/python3.9/site-packages/sanic_ext/extensions/injection/extension.py", line 12, in startup add_injection(self.app, self.registry, self.constant_registry) File "/usr/local/lib/python3.9/site-packages/sanic_ext/extensions/injection/injector.py",...

Per the `LICENSE` file, it says: ``` Copyright (c) 2017 Channel Cat ``` Shouldn't the copyright holder "Sanic Community", as with other projects? ``` Copyright (c) 2017-present Sanic Community ```...

The pyproject file specified a requirement on an old version of setuptools. This pull request removes that requirement so that the latest version of setuptools can be used. I mainly...

When you configure `OAS_URI_TO_CONFIG` and `OAS_URI_TO_JSON` they don't flow down to the swagger docs properly, so this PR is to add support for that

## Describe the bug In [Jinja extension documentation](https://sanic.dev/en/plugins/sanic-ext/templating/jinja.html#configuration), it points to https://sanic.dev/en/plugins/sanic-ext/templating/configuration.html#settings for documentation on templating configuration variables `templating_enable_async` and `templating_path_to_templates`. The correct link should be to https://sanic.dev/en/plugins/sanic-ext/configuration.html#codetemplatingenableasynccode

The `schema` method is deprecated; use `model_json_schema` instead. Deprecated in Pydantic V2.0 to be removed in V3.0.

**Describe the bug** "OpenAPI - Decorators" page does not have a "parameter" subheading. [**This page**](https://sanic.dev/en/plugins/sanic-ext/openapi/decorators.html#decorators) **Screenshots** ![image](https://github.com/sanic-org/sanic-ext/assets/41543107/722bcccd-d541-4d99-8deb-7db20eba5531) **Expected behavior** There should be a "parameter" header after "operation" section. **Environment (please...

**Describe the bug** The `sanic-ext` OpenAPI decorators don't seem to have any effect with websocket handlers. When there are websocket routes in an app or a blueprint, it is not...