We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54ea301 commit 7b5ae46Copy full SHA for 7b5ae46
backend/plugin/code_generator/templates/python/schema.jinja
@@ -10,7 +10,7 @@ from backend.common.schema import SchemaBase
10
class {{ schema_name }}SchemaBase(SchemaBase):
11
"""{{ doc_comment }}基础模型"""
12
{% for model in models %}
13
- {{ model.name }}: {% if model.nullable %}{{ model.pd_type }} | None = Field(None, description='{{ model.comment }}'){% else %}{{ model.pd_type }} = Field(description='{{ model.comment }}'){% endif %}
+ {{ model.name }}: {% if model.is_nullable %}{{ model.pd_type }} | None = Field(None, description='{{ model.comment }}'){% else %}{{ model.pd_type }} = Field(description='{{ model.comment }}'){% endif %}
14
15
{% endfor %}
16
0 commit comments