We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8121f34 commit b76cae3Copy full SHA for b76cae3
1 file changed
template/plugin/pdk_types.py.ejs
@@ -28,7 +28,16 @@ class <%- pythonTypeName(schema.name) %>(JSONWizard):
28
<% }) %>
29
30
<% schema.properties.forEach(p => { -%>
31
-<% if (p.nullable || !p.required) {%>
+<% if (p.nullable && p.required) {%>
32
+ <% if (p.description) { -%>
33
+ # <%- formatCommentBlock(p.description, "# ") %>
34
+ <% } -%>
35
+ <%- p.name %>: <%- toPythonType(p, p.required) %>
36
+<% } %>
37
+<% }) %>
38
+
39
+<% schema.properties.forEach(p => { -%>
40
+<% if (!p.required) {%>
41
<% if (p.description) { -%>
42
# <%- formatCommentBlock(p.description, "# ") %>
43
<% } -%>
0 commit comments