nest-prisma_doc-gen 1.0.17 → 1.0.18

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