django-ninja
django-ninja copied to clipboard
Calculated fields are not visible in the schema
The schema of the models uses validation instead of serialization and that causes the computed fields not to be shown (see https://docs.pydantic.dev/latest/api/json_schema/#pydantic.json_schema.JsonSchemaMode).
@vitalik is there a known workaround for this, or a plan to address?
I can try to send a PR if you point me in the direction of where to fix
@aurbano sure - go ahead