typera-openapi
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -381,7 +381,6 @@ "use strict"; | ||
const props = ctx.checker.getPropertiesOfType(type); | ||
return props.map((prop) => ({ | ||
name: prop.name, | ||
in: in_, | ||
required: in_ === 'path' ? true : !utils_1.isOptional(prop), | ||
})); | ||
return props.map((prop) => { | ||
const description = getDescriptionFromComment(ctx, prop); | ||
return Object.assign({ name: prop.name, in: in_, required: in_ === 'path' ? true : !utils_1.isOptional(prop) }, (description ? { description } : undefined)); | ||
}); | ||
}; | ||
@@ -388,0 +387,0 @@ const typeToHeaders = (ctx, type) => { |
{ | ||
"name": "typera-openapi", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Generate OpenAPI spec from typera routes", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/akheron/typera-openapi", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42370
825