cogsbox-shape 0.5.45 → 0.5.46
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/schema.js +1 -1
- package/package.json +1 -1
package/dist/schema.js
CHANGED
|
@@ -358,7 +358,7 @@ export function createSchema(schema) {
|
|
|
358
358
|
if (!isRelation(relation)) {
|
|
359
359
|
continue;
|
|
360
360
|
}
|
|
361
|
-
const childSchemaResult = createSchema(relation.schema);
|
|
361
|
+
const childSchemaResult = createSchema(relation.schema());
|
|
362
362
|
if (relation.type === "hasMany" || relation.type === "manyToMany") {
|
|
363
363
|
// CORRECTLY ADD THE RELATION TO THE LIST OF VALIDATION FIELDS
|
|
364
364
|
// Make it optional, as relations are often not included on create/update.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cogsbox-shape",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.46",
|
|
4
4
|
"description": "A TypeScript library for creating type-safe database schemas with Zod validation, SQL type definitions, and automatic client/server transformations. Unifies client, server, and database types through a single schema definition, with built-in support for relationships and serialization.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|