@omnifyjp/omnify 5.8.28 → 5.8.30
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/omnify-schema.json +28 -0
- package/package.json +6 -6
- package/types/schema.d.ts +7 -0
package/omnify-schema.json
CHANGED
|
@@ -312,6 +312,9 @@
|
|
|
312
312
|
{
|
|
313
313
|
"$ref": "#/definitions/JsonProperty"
|
|
314
314
|
},
|
|
315
|
+
{
|
|
316
|
+
"$ref": "#/definitions/BinaryProperty"
|
|
317
|
+
},
|
|
315
318
|
{
|
|
316
319
|
"$ref": "#/definitions/EnumProperty"
|
|
317
320
|
},
|
|
@@ -748,6 +751,26 @@
|
|
|
748
751
|
}
|
|
749
752
|
]
|
|
750
753
|
},
|
|
754
|
+
"BinaryProperty": {
|
|
755
|
+
"allOf": [
|
|
756
|
+
{ "$ref": "#/definitions/BaseProperty" },
|
|
757
|
+
{
|
|
758
|
+
"type": "object",
|
|
759
|
+
"required": ["type"],
|
|
760
|
+
"properties": {
|
|
761
|
+
"type": {
|
|
762
|
+
"const": "Binary",
|
|
763
|
+
"description": "Binary blob: VARBINARY(N) on MariaDB / BLOB on SQLite / BYTEA on Postgres → []byte in Go. Use for raw binary data (encrypted secrets, hashes, image thumbnails). Issue #103 follow-up."
|
|
764
|
+
},
|
|
765
|
+
"length": {
|
|
766
|
+
"type": "integer",
|
|
767
|
+
"minimum": 1,
|
|
768
|
+
"description": "VARBINARY length in bytes. Defaults to 255. Above 65535 falls back to MEDIUMBLOB / LONGBLOB."
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
]
|
|
773
|
+
},
|
|
751
774
|
"JsonProperty": {
|
|
752
775
|
"allOf": [
|
|
753
776
|
{
|
|
@@ -762,6 +785,11 @@
|
|
|
762
785
|
"type": {
|
|
763
786
|
"const": "Json",
|
|
764
787
|
"description": "JSON type for storing structured data"
|
|
788
|
+
},
|
|
789
|
+
"items": {
|
|
790
|
+
"type": "string",
|
|
791
|
+
"description": "Inner type for typed JSON arrays. When set (e.g. 'String'), the Go target emits []T instead of plain string. Issue #103 follow-up.",
|
|
792
|
+
"enum": ["String", "Text", "Email", "Phone", "Slug", "Url", "Uuid", "TinyInt", "Int", "BigInt", "Float", "Decimal", "Boolean"]
|
|
765
793
|
}
|
|
766
794
|
}
|
|
767
795
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnifyjp/omnify",
|
|
3
|
-
"version": "5.8.
|
|
3
|
+
"version": "5.8.30",
|
|
4
4
|
"description": "Schema-driven code generation for Laravel, TypeScript, and SQL",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"zod": "^3.24.0"
|
|
37
37
|
},
|
|
38
38
|
"optionalDependencies": {
|
|
39
|
-
"@omnifyjp/omnify-darwin-arm64": "5.8.
|
|
40
|
-
"@omnifyjp/omnify-darwin-x64": "5.8.
|
|
41
|
-
"@omnifyjp/omnify-linux-x64": "5.8.
|
|
42
|
-
"@omnifyjp/omnify-linux-arm64": "5.8.
|
|
43
|
-
"@omnifyjp/omnify-win32-x64": "5.8.
|
|
39
|
+
"@omnifyjp/omnify-darwin-arm64": "5.8.30",
|
|
40
|
+
"@omnifyjp/omnify-darwin-x64": "5.8.30",
|
|
41
|
+
"@omnifyjp/omnify-linux-x64": "5.8.30",
|
|
42
|
+
"@omnifyjp/omnify-linux-arm64": "5.8.30",
|
|
43
|
+
"@omnifyjp/omnify-win32-x64": "5.8.30"
|
|
44
44
|
}
|
|
45
45
|
}
|
package/types/schema.d.ts
CHANGED
|
@@ -215,6 +215,13 @@ export interface PropertyDefinition {
|
|
|
215
215
|
placeholder?: LocalizedString;
|
|
216
216
|
/** Per-field overrides for compound types. */
|
|
217
217
|
fields?: Record<string, CompoundFieldOverride>;
|
|
218
|
+
/**
|
|
219
|
+
* Inner type for typed JSON arrays. When set on a Json property
|
|
220
|
+
* (e.g. `items: "String"`), the Go target emits `[]string` instead
|
|
221
|
+
* of plain `string`. The DDL column type stays JSON / TEXT — only
|
|
222
|
+
* Go-side codegen is affected. Issue #103 follow-up.
|
|
223
|
+
*/
|
|
224
|
+
items?: "String" | "Text" | "Email" | "Phone" | "Slug" | "Url" | "Uuid" | "TinyInt" | "Int" | "BigInt" | "Float" | "Decimal" | "Boolean";
|
|
218
225
|
|
|
219
226
|
// String-specific
|
|
220
227
|
length?: number;
|