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 36b7e20 commit b40f2adCopy full SHA for b40f2ad
ruoyi-fastapi-backend/module_generator/templates/python/vo.py.jinja2
@@ -8,8 +8,8 @@
8
{% set vo_field_required.has_required = True %}
9
{% endif %}
10
{% endfor %}
11
-{% if table.sub %}
12
{% set sub_vo_field_required = namespace(has_required=False) %}
+{% if table.sub %}
13
{% for sub_column in subTable.columns %}
14
{% if sub_column.required %}
15
{% set sub_vo_field_required.has_required = True %}
@@ -21,7 +21,7 @@
21
22
from pydantic import BaseModel, ConfigDict, Field
23
from pydantic.alias_generators import to_camel
24
-{% if vo_field_required.has_required %}
+{% if vo_field_required.has_required or sub_vo_field_required.has_required %}
25
from pydantic_validation_decorator import NotBlank
26
27
{% if table.sub %}
0 commit comments