@omnifyjp/omnify 5.8.28 → 5.8.29

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.
@@ -762,6 +762,11 @@
762
762
  "type": {
763
763
  "const": "Json",
764
764
  "description": "JSON type for storing structured data"
765
+ },
766
+ "items": {
767
+ "type": "string",
768
+ "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.",
769
+ "enum": ["String", "Text", "Email", "Phone", "Slug", "Url", "Uuid", "TinyInt", "Int", "BigInt", "Float", "Decimal", "Boolean"]
765
770
  }
766
771
  }
767
772
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnifyjp/omnify",
3
- "version": "5.8.28",
3
+ "version": "5.8.29",
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.28",
40
- "@omnifyjp/omnify-darwin-x64": "5.8.28",
41
- "@omnifyjp/omnify-linux-x64": "5.8.28",
42
- "@omnifyjp/omnify-linux-arm64": "5.8.28",
43
- "@omnifyjp/omnify-win32-x64": "5.8.28"
39
+ "@omnifyjp/omnify-darwin-arm64": "5.8.29",
40
+ "@omnifyjp/omnify-darwin-x64": "5.8.29",
41
+ "@omnifyjp/omnify-linux-x64": "5.8.29",
42
+ "@omnifyjp/omnify-linux-arm64": "5.8.29",
43
+ "@omnifyjp/omnify-win32-x64": "5.8.29"
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;