@objectstack/rest 10.0.0 → 10.2.0
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.cjs +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -308,6 +308,7 @@ function mapDataError(error, object) {
|
|
|
308
308
|
error: `${field} is required`,
|
|
309
309
|
code: "VALIDATION_FAILED",
|
|
310
310
|
fields: [{ field, code: "required", message: `${field} is required` }],
|
|
311
|
+
hint: `If '${field}' is optional in your object metadata, the database column is still NOT NULL \u2014 the physical schema has drifted from metadata. Run 'os migrate' to reconcile (or reset the dev database).`,
|
|
311
312
|
...object ? { object } : {}
|
|
312
313
|
}
|
|
313
314
|
};
|