Closed jokiefer closed 2 years ago
I am positive that at some point in the past (maybe 1,5 weeks ago) we had the verbose_name
from the Django model class exported as a property title
in the OpenAPI schema, e.g. for the WebMapService entities. Also, the Swagger UI offered the get schema operation with a language parameter that already allowed to switch between German and English.
Status quo
Currently the schema of the json:api is build by
from rest_framework_json_api.schemas.openapi import SchemaGenerator
This Generator creates a schema like below:The description or example is the property
help_text
of the django model field.Enhancement
verbose_name
of the django model field (which is the translateable title of the field) shall be also part of the schema.verbose_name
of the model it self shall be also part of the schema.