@easy-breezy/generator-api
Advanced tools
Comparing version 2.0.43 to 2.0.44
@@ -20,3 +20,3 @@ import ts from 'typescript'; | ||
parameters = ts.factory.createTypeReferenceNode(ts.factory.createQualifiedName(ts.factory.createIdentifier(options.importName), ts.factory.createIdentifier('IParameters')), undefined); | ||
if (!options.schemas.body?.required?.length && !options.schemas.query?.required?.length && !options.schemas.path?.required?.length && !options.schemas.header?.required?.length) { | ||
if (typeof options.schemas.body?.required !== 'boolean' && !options.schemas.body?.required?.length && !options.schemas.query?.required?.length && !options.schemas.path?.required?.length && !options.schemas.header?.required?.length) { | ||
parameters = ts.factory.createUnionTypeNode([ | ||
@@ -23,0 +23,0 @@ parameters, |
{ | ||
"name": "@easy-breezy/generator-api", | ||
"version": "2.0.43", | ||
"version": "2.0.44", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "type": "module", |
76190