vona-module-a-openapi 5.0.40 → 5.0.41
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/index.js +1 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -768,9 +768,7 @@ function schemaTableIdentity() {
|
|
|
768
768
|
const ormConfig = app.util.getModuleConfigRaw('a-orm');
|
|
769
769
|
const _identityType = ormConfig?.table?.identityType ?? 'bigint';
|
|
770
770
|
return function (_schema) {
|
|
771
|
-
if (_identityType === '
|
|
772
|
-
return z.string();
|
|
773
|
-
} else if (_identityType === 'number') {
|
|
771
|
+
if (_identityType === 'number') {
|
|
774
772
|
return z.number();
|
|
775
773
|
} else if (_identityType === 'bigint') {
|
|
776
774
|
return z.string().regex(/^\d+$/);
|