We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60242c8 commit 4828a02Copy full SHA for 4828a02
1 file changed
template/plugin/pdk_types.py.ejs
@@ -21,7 +21,20 @@ class <%- capitalize(schema.name) %>(extism.Json):
21
<% if (p.description) { -%>
22
# <%- formatCommentBlock(p.description, "# ") %>
23
<% } -%>
24
+<% if (!p.nullable) {%>
25
<%- p.name %>: <%- toPythonType(p) %>
26
+<% } %>
27
+<% }) %>
28
+
29
+<% schema.properties.forEach(p => { -%>
30
+<% if (p.description) { -%>
31
+ # <%- formatCommentBlock(p.description, "# ") %>
32
+<% } -%>
33
+<% if (p.nullable) {%>
34
+ <%- p.name %>: <%- toPythonType(p) %> = None
35
36
<% }) %>
37
38
<% } %>
39
<% }); %>
40
0 commit comments