nest-prisma_doc-gen 1.0.2 → 1.0.3

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.
@@ -115,6 +115,9 @@ export class DocGenField {
115
115
  else if (this.scalarField.type === "Int") {
116
116
  props.push(`example: ${Static.getRandomNumber()}`);
117
117
  }
118
+ else if (this.scalarField.type === "String") {
119
+ props.push(`example: 'ordinary string'`);
120
+ }
118
121
  props.push(`required: ${this.scalarField.isRequired}`);
119
122
  return props;
120
123
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nest-prisma_doc-gen",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Auto generates ApiProperties from schema.prisma",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -126,6 +126,8 @@ export class DocGenField {
126
126
  props.push(`example: ${this.scalarField.type}[0]`);
127
127
  } else if (this.scalarField.type === "Int") {
128
128
  props.push(`example: ${Static.getRandomNumber()}`);
129
+ } else if (this.scalarField.type === "String") {
130
+ props.push(`example: 'ordinary string'`);
129
131
  }
130
132
 
131
133
  props.push(`required: ${this.scalarField.isRequired}`);