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.
- package/dist/entities/field.js +3 -0
- package/package.json +1 -1
- package/src/entities/field.ts +2 -0
package/dist/entities/field.js
CHANGED
|
@@ -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
package/src/entities/field.ts
CHANGED
|
@@ -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}`);
|