@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.cjs
CHANGED
|
@@ -348,6 +348,7 @@ function mapDataError(error, object) {
|
|
|
348
348
|
error: `${field} is required`,
|
|
349
349
|
code: "VALIDATION_FAILED",
|
|
350
350
|
fields: [{ field, code: "required", message: `${field} is required` }],
|
|
351
|
+
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).`,
|
|
351
352
|
...object ? { object } : {}
|
|
352
353
|
}
|
|
353
354
|
};
|