nest-prisma_doc-gen 1.0.15 → 1.0.17

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.
@@ -110,7 +110,9 @@ export class DocGenField {
110
110
  }
111
111
  else if (this.scalarField.kind === "enum") {
112
112
  const example = [`example: Object.values(${this.scalarField.type})`];
113
- this.isArray ?? example.push("[0]");
113
+ if (!this.isArray) {
114
+ example.push("[0]");
115
+ }
114
116
  props.push(example.join());
115
117
  }
116
118
  else if (this.scalarField.type === "Int") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nest-prisma_doc-gen",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "description": "Auto generates ApiProperties from schema.prisma",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",