ts-class-to-openapi 1.2.0 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types.d.ts CHANGED
@@ -58,6 +58,8 @@ interface PropertyInfo {
58
58
  isClassType?: boolean;
59
59
  /** Whether the property type is an array type */
60
60
  isArray?: boolean;
61
+ /** Whether the property type is an enum type */
62
+ isEnum?: boolean;
61
63
  /** The original TypeScript property declaration (optional) */
62
64
  originalProperty: ts.PropertyDeclaration;
63
65
  /** Whether the property is a reference to another or yourselves schema */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-class-to-openapi",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "Transform TypeScript classes into OpenAPI 3.1.0 schema objects, which support class-validator decorators",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.esm.js",