File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ case $1 in
2929 # Using ../../bundle so we test the bindgen template
3030 PLUGIN_NAME=exampleplugin
3131 echo " generating initial plugin code in '$( pwd) /$PLUGIN_NAME '..."
32- # xtp plugin init --schema-file schema.yaml --template ../../bundle --path $PLUGIN_NAME --name $PLUGIN_NAME --feature stub-with-code-samples
32+ xtp plugin init --schema-file schema.yaml --template ../../bundle --path $PLUGIN_NAME --name $PLUGIN_NAME --feature stub-with-code-samples
3333 echo " building '$PLUGIN_NAME '..."
3434 xtp plugin build --path $PLUGIN_NAME
3535 echo " testing '$PLUGIN_NAME '..."
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class <%- capitalize(schema.name) %>(extism.Json):
2020< % if (p .description ) { -% >
2121 # < %- formatCommentBlock (p .description , " # " ) % >
2222< % } -% >
23- < %- p .name % > : < %- p .nullable ? ` Optional[' ${ toPythonType (p)} '] ` : ` ' ${ toPythonType (p)} ' ` % >
23+ < %- p .name % > : < %- p .nullable ? ` ${ toPythonType (p)} = None ` : ` ${ toPythonType (p)} ` % >
2424< % }) % >
2525< % } % >
2626< % }); %>
You can’t perform that action at this time.
0 commit comments