We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a61189c commit 00aadbbCopy full SHA for 00aadbb
1 file changed
adminforth/dataConnectors/baseConnector.ts
@@ -397,6 +397,10 @@ export default class AdminForthBaseConnector implements IAdminForthDataSourceCon
397
if (value === "" || value === null) {
398
return this.setFieldValue(field, null);
399
}
400
+ // Accept numbers from JSON/OpenAPI clients.
401
+ if (typeof value === "number" && Number.isFinite(value)) {
402
+ return this.setFieldValue(field, String(value));
403
+ }
404
// Accept string
405
if (typeof value === "string") {
406
const string = value.trim();
@@ -665,4 +669,4 @@ export default class AdminForthBaseConnector implements IAdminForthDataSourceCon
665
669
666
670
667
671
668
-}
672
+}
0 commit comments