Files
WYGIWYH/app/apps/api/apps.py
T
Herculino Trotta a432fae632 fix(api): clear the API docs schema warnings
Describe the API token authentication, name the colliding transaction
type enums, and use nullable instead of an OpenAPI 3.1 null type. A test
keeps the schema free of warnings.
2026-11-14 02:12:16 -03:00

10 lines
255 B
Python

from django.apps import AppConfig
class ApiConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "apps.api"
def ready(self):
import apps.api.schema # noqa: F401 registers the API token scheme for the docs