added more tests, updated json schema generation

This commit is contained in:
dswbx
2025-06-07 08:24:21 +02:00
parent 9a18e354cd
commit a0edcf483b
2 changed files with 28 additions and 0 deletions

View File

@@ -67,6 +67,10 @@ export class PrimaryField<Required extends true | false = false> extends Field<
}
override toJsonSchema() {
if (this.format === "uuid") {
return this.toSchemaWrapIfRequired(Type.String({ writeOnly: undefined }));
}
return this.toSchemaWrapIfRequired(Type.Number({ writeOnly: undefined }));
}