From cadf71f6ce1f2e120f96ae4779dface26faf6372 Mon Sep 17 00:00:00 2001 From: Artifizer Date: Mon, 23 Feb 2026 11:46:18 +0200 Subject: [PATCH] examples: update examples, aligned it with the recent specificaiton version Signed-off-by: Artifizer --- ....core.events.type_combined.v1~.schema.json | 13 ++++++----- ...les.module.v1~x.webstore._.catalog.v1.json | 22 ++++++++++++++----- ...odules.module.v1~x.webstore._.chat.v1.json | 12 +++++----- ....x.core.modules.capability.v1~.schema.json | 11 ++++++---- examples/typespec/vms/README.md | 2 +- ...te.vm_state.v1~x.infra._.migrating.v1.json | 2 +- ...mpute.vm_state.v1~x.infra._.paused.v1.json | 2 +- ...te.vm_state.v1~x.infra._.rebooting.v1.json | 2 +- ...pute.vm_state.v1~x.infra._.running.v1.json | 2 +- ...ute.vm_state.v1~x.infra._.starting.v1.json | 2 +- ...pute.vm_state.v1~x.infra._.stopped.v1.json | 2 +- ...ute.vm_state.v1~x.infra._.stopping.v1.json | 2 +- ...te.vm_state.v1~x.infra._.suspended.v1.json | 2 +- ...e.vm_state.v1~x.infra._.suspending.v1.json | 2 +- ...m.v1~nutanix.ahv._.vm.v1~db-server-01.json | 4 ++-- ....v1~vmware.esxi._.vm.v1~web-server-01.json | 4 ++-- ...ute.vm.v1~vz.vz._.vm.v1~app-server-01.json | 4 ++-- .../gts.x.infra.compute.vm.v1~.schema.json | 8 +++---- .../schemas/gts.x.infra.compute.vm.v1~.tsp | 2 +- ...ute.vm.v1~nutanix.ahv._.vm.v1~.schema.json | 4 ++-- ...fra.compute.vm.v1~nutanix.ahv._.vm.v1~.tsp | 4 ++-- ...ute.vm.v1~vmware.esxi._.vm.v1~.schema.json | 4 ++-- ...fra.compute.vm.v1~vmware.esxi._.vm.v1~.tsp | 4 ++-- ...a.compute.vm.v1~vz.vz._.vm.v1~.schema.json | 4 ++-- ...s.x.infra.compute.vm.v1~vz.vz._.vm.v1~.tsp | 4 ++-- ...v1~x.ui.components.grid.v1~users_list.yaml | 2 +- ...omponents.menu_item.v1~main_dashboard.yaml | 2 +- ...components.menu_item.v1~user_settings.yaml | 2 +- 28 files changed, 74 insertions(+), 56 deletions(-) diff --git a/examples/events/schemas/gts.x.core.events.type_combined.v1~.schema.json b/examples/events/schemas/gts.x.core.events.type_combined.v1~.schema.json index c528dc9..6246333 100644 --- a/examples/events/schemas/gts.x.core.events.type_combined.v1~.schema.json +++ b/examples/events/schemas/gts.x.core.events.type_combined.v1~.schema.json @@ -9,12 +9,15 @@ "tenantId", "occurredAt" ], - "x-event-type-settings": { + "x-gts-traits-schema": { + "type": "object", "additionalProperties": false, - "topicRef": { - "description": "ID of the topic where events of this type are stored.", - "type": "string", - "x-gts-ref":"gts.x.core.events.topic.v1~" + "properties": { + "topicRef": { + "description": "ID of the topic where events of this type are stored.", + "type": "string", + "x-gts-ref": "gts.x.core.events.topic.v1~" + } } }, "properties": { diff --git a/examples/modules/instances/gts.x.core.modules.module.v1~x.webstore._.catalog.v1.json b/examples/modules/instances/gts.x.core.modules.module.v1~x.webstore._.catalog.v1.json index 126a424..b776bca 100644 --- a/examples/modules/instances/gts.x.core.modules.module.v1~x.webstore._.catalog.v1.json +++ b/examples/modules/instances/gts.x.core.modules.module.v1~x.webstore._.catalog.v1.json @@ -3,17 +3,27 @@ "displayName": "WebStore Product Catalog module", "description": "WebStore module providing Products Catalog capabilities.", "capabilities": [ - "gts.x.core.modules.capability.v1~x.core.api.has_rest.v1" + "gts.x.core.modules.capability.v1~x.core.api.has_rest.v1" ], "requirements": [], "configSchema": { "type": "object", "properties": { - "default_products_view": { "type": "string", "enum": ["table", "list"] }, - "default_products_per_page": { "type": "int", "minimum": 1, "maximum": 100, "default": 20 }, - "default_region": { "type": "string", "description": "Default region for product availability" }, + "default_products_view": { + "type": "string", + "enum": [ + "table", + "list" + ] + }, + "default_region": { + "type": "string", + "description": "Default region for product availability" + } }, - "required": ["default_region"], + "required": [ + "default_region" + ], "additionalProperties": false } -} \ No newline at end of file +} diff --git a/examples/modules/instances/gts.x.core.modules.module.v1~x.webstore._.chat.v1.json b/examples/modules/instances/gts.x.core.modules.module.v1~x.webstore._.chat.v1.json index 153efb6..dba9020 100644 --- a/examples/modules/instances/gts.x.core.modules.module.v1~x.webstore._.chat.v1.json +++ b/examples/modules/instances/gts.x.core.modules.module.v1~x.webstore._.chat.v1.json @@ -5,10 +5,10 @@ "capabilities": [ "gts.x.core.modules.capability.v1~x.core.api.has_rest.v1", "gts.x.core.modules.capability.v1~x.core.api.has_ws.v1", - "gts.x.core.modules.capability.v1~x.core.api.has_sse.v1" + "gts.x.core.modules.capability.v1~x.core.api.has_sse.v1" ], "requirements": [ - "gts.x.core.modules.module.v1~x.webstore._.catalog.v1" + "gts.x.core.modules.module.v1~x.webstore._.catalog.v1" ], "configSchema": { "type": "object", @@ -18,7 +18,7 @@ "description": "Max chat messages retention in days", "default": "90", "minimum": 0, - "maximum": 356, + "maximum": 356 }, "max_file_size": { "type": "int", @@ -30,7 +30,9 @@ "default": true } }, - "required": ["max_file_size"], + "required": [ + "max_file_size" + ], "additionalProperties": false } -} \ No newline at end of file +} diff --git a/examples/modules/schemas/gts.x.core.modules.capability.v1~.schema.json b/examples/modules/schemas/gts.x.core.modules.capability.v1~.schema.json index f72e0ef..9d91229 100644 --- a/examples/modules/schemas/gts.x.core.modules.capability.v1~.schema.json +++ b/examples/modules/schemas/gts.x.core.modules.capability.v1~.schema.json @@ -2,7 +2,10 @@ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "gts://gts.x.core.modules.capability.v1~", "description": "Base schema for any application modules capabilities", - "required": ["description", "id"], + "required": [ + "description", + "id" + ], "properties": { "id": { "type": "string", @@ -11,7 +14,7 @@ "description": { "type": "string", "maxLength": 500 - }, - "additionalProperties": false - } + } + }, + "additionalProperties": false } diff --git a/examples/typespec/vms/README.md b/examples/typespec/vms/README.md index 315159e..e48b423 100644 --- a/examples/typespec/vms/README.md +++ b/examples/typespec/vms/README.md @@ -15,7 +15,7 @@ These examples demonstrate: - **[gts.x.infra.compute.vm.v1~](schemas/gts.x.infra.compute.vm.v1~.tsp)** ([JSON Schema](schemas/gts.x.infra.compute.vm.v1~.schema.json)) - Base virtual machine type with common properties - - Properties: `gtsId`, `id`, `name`, `cpuCores`, `ramMb`, `powerState`, `osType`, `createdAt`, `environment`, `owner`, `metadata` + - Properties: `type`, `id`, `name`, `cpuCores`, `ramMb`, `powerState`, `osType`, `createdAt`, `environment`, `owner`, `metadata` - `powerState` uses GTS reference pattern for backward-compatible extensibility ### Derived Types diff --git a/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.migrating.v1.json b/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.migrating.v1.json index c9d3363..f43d19f 100644 --- a/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.migrating.v1.json +++ b/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.migrating.v1.json @@ -1,5 +1,5 @@ { - "gtsId": "gts.x.infra.compute.vm_state.v1~x.infra._.migrating.v1", + "id": "gts.x.infra.compute.vm_state.v1~x.infra._.migrating.v1", "description": "Virtual machine is being migrated to another host", "isTransient": true, "icon": "move" diff --git a/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.paused.v1.json b/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.paused.v1.json index 2140950..c8b9e8e 100644 --- a/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.paused.v1.json +++ b/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.paused.v1.json @@ -1,5 +1,5 @@ { - "gtsId": "gts.x.infra.compute.vm_state.v1~x.infra._.paused.v1", + "id": "gts.x.infra.compute.vm_state.v1~x.infra._.paused.v1", "description": "Virtual machine is temporarily paused, memory state preserved", "isTransient": false, "icon": "pause-circle" diff --git a/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.rebooting.v1.json b/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.rebooting.v1.json index ffdb27e..6d4412a 100644 --- a/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.rebooting.v1.json +++ b/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.rebooting.v1.json @@ -1,5 +1,5 @@ { - "gtsId": "gts.x.infra.compute.vm_state.v1~x.infra._.rebooting.v1", + "id": "gts.x.infra.compute.vm_state.v1~x.infra._.rebooting.v1", "description": "Virtual machine is rebooting", "isTransient": true, "icon": "refresh" diff --git a/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.running.v1.json b/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.running.v1.json index d38b73b..07fb4a2 100644 --- a/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.running.v1.json +++ b/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.running.v1.json @@ -1,5 +1,5 @@ { - "gtsId": "gts.x.infra.compute.vm_state.v1~x.infra._.running.v1", + "id": "gts.x.infra.compute.vm_state.v1~x.infra._.running.v1", "description": "Virtual machine is running and operational", "isTransient": false, "icon": "play" diff --git a/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.starting.v1.json b/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.starting.v1.json index cfe2fc8..76d2e68 100644 --- a/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.starting.v1.json +++ b/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.starting.v1.json @@ -1,5 +1,5 @@ { - "gtsId": "gts.x.infra.compute.vm_state.v1~x.infra._.starting.v1", + "id": "gts.x.infra.compute.vm_state.v1~x.infra._.starting.v1", "description": "Virtual machine is starting up", "isTransient": true, "icon": "loader" diff --git a/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.stopped.v1.json b/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.stopped.v1.json index 3de635e..141155b 100644 --- a/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.stopped.v1.json +++ b/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.stopped.v1.json @@ -1,5 +1,5 @@ { - "gtsId": "gts.x.infra.compute.vm_state.v1~x.infra._.stopped.v1", + "id": "gts.x.infra.compute.vm_state.v1~x.infra._.stopped.v1", "description": "Virtual machine is stopped and not consuming compute resources", "isTransient": false, "icon": "stop" diff --git a/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.stopping.v1.json b/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.stopping.v1.json index 52e5806..5e5c0c8 100644 --- a/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.stopping.v1.json +++ b/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.stopping.v1.json @@ -1,5 +1,5 @@ { - "gtsId": "gts.x.infra.compute.vm_state.v1~x.infra._.stopping.v1", + "id": "gts.x.infra.compute.vm_state.v1~x.infra._.stopping.v1", "description": "Virtual machine is shutting down", "isTransient": true, "icon": "loader" diff --git a/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.suspended.v1.json b/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.suspended.v1.json index e6f2701..836a59f 100644 --- a/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.suspended.v1.json +++ b/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.suspended.v1.json @@ -1,5 +1,5 @@ { - "gtsId": "gts.x.infra.compute.vm_state.v1~x.infra._.suspended.v1", + "id": "gts.x.infra.compute.vm_state.v1~x.infra._.suspended.v1", "description": "Virtual machine state is saved to disk and can be resumed quickly", "isTransient": false, "icon": "pause" diff --git a/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.suspending.v1.json b/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.suspending.v1.json index cfef08b..a6c7e59 100644 --- a/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.suspending.v1.json +++ b/examples/typespec/vms/instances/states/gts.x.infra.compute.vm_state.v1~x.infra._.suspending.v1.json @@ -1,5 +1,5 @@ { - "gtsId": "gts.x.infra.compute.vm_state.v1~x.infra._.suspending.v1", + "id": "gts.x.infra.compute.vm_state.v1~x.infra._.suspending.v1", "description": "Virtual machine is saving state to disk", "isTransient": true, "icon": "loader" diff --git a/examples/typespec/vms/instances/vms/gts.x.infra.compute.vm.v1~nutanix.ahv._.vm.v1~db-server-01.json b/examples/typespec/vms/instances/vms/gts.x.infra.compute.vm.v1~nutanix.ahv._.vm.v1~db-server-01.json index 80b935f..ec19fdf 100644 --- a/examples/typespec/vms/instances/vms/gts.x.infra.compute.vm.v1~nutanix.ahv._.vm.v1~db-server-01.json +++ b/examples/typespec/vms/instances/vms/gts.x.infra.compute.vm.v1~nutanix.ahv._.vm.v1~db-server-01.json @@ -1,5 +1,5 @@ { - "gtsId": "gts.x.infra.compute.vm.v1~nutanix.ahv._.vm.v1~", + "type": "gts.x.infra.compute.vm.v1~nutanix.ahv._.vm.v1~", "id": "550e8400-e29b-41d4-a716-446655440002", "name": "db-server-01", "cpuCores": 8, @@ -25,4 +25,4 @@ "haPriority": "high", "backupSchedule": "daily" } -} \ No newline at end of file +} diff --git a/examples/typespec/vms/instances/vms/gts.x.infra.compute.vm.v1~vmware.esxi._.vm.v1~web-server-01.json b/examples/typespec/vms/instances/vms/gts.x.infra.compute.vm.v1~vmware.esxi._.vm.v1~web-server-01.json index c87813d..f5bd400 100644 --- a/examples/typespec/vms/instances/vms/gts.x.infra.compute.vm.v1~vmware.esxi._.vm.v1~web-server-01.json +++ b/examples/typespec/vms/instances/vms/gts.x.infra.compute.vm.v1~vmware.esxi._.vm.v1~web-server-01.json @@ -1,5 +1,5 @@ { - "gtsId": "gts.x.infra.compute.vm.v1~vmware.esxi._.vm.v1~", + "type": "gts.x.infra.compute.vm.v1~vmware.esxi._.vm.v1~", "id": "550e8400-e29b-41d4-a716-446655440001", "name": "web-server-01", "cpuCores": 4, @@ -21,4 +21,4 @@ "vMotionEnabled": true, "costCenter": "CC-1001" } -} \ No newline at end of file +} diff --git a/examples/typespec/vms/instances/vms/gts.x.infra.compute.vm.v1~vz.vz._.vm.v1~app-server-01.json b/examples/typespec/vms/instances/vms/gts.x.infra.compute.vm.v1~vz.vz._.vm.v1~app-server-01.json index c0308be..60c8a46 100644 --- a/examples/typespec/vms/instances/vms/gts.x.infra.compute.vm.v1~vz.vz._.vm.v1~app-server-01.json +++ b/examples/typespec/vms/instances/vms/gts.x.infra.compute.vm.v1~vz.vz._.vm.v1~app-server-01.json @@ -1,5 +1,5 @@ { - "gtsId": "gts.x.infra.compute.vm.v1~vz.vz._.vm.v1~", + "type": "gts.x.infra.compute.vm.v1~vz.vz._.vm.v1~", "id": "550e8400-e29b-41d4-a716-446655440003", "name": "app-server-01", "cpuCores": 2, @@ -23,4 +23,4 @@ "backupNodeName": "vz-node-02.example.com", "project": "microservices-platform" } -} \ No newline at end of file +} diff --git a/examples/typespec/vms/schemas/gts.x.infra.compute.vm.v1~.schema.json b/examples/typespec/vms/schemas/gts.x.infra.compute.vm.v1~.schema.json index ddf1902..cb33509 100644 --- a/examples/typespec/vms/schemas/gts.x.infra.compute.vm.v1~.schema.json +++ b/examples/typespec/vms/schemas/gts.x.infra.compute.vm.v1~.schema.json @@ -5,7 +5,7 @@ "description": "Base type for all virtual machine definitions across different virtualization platforms.", "type": "object", "required": [ - "gtsId", + "type", "id", "name", "cpuCores", @@ -14,7 +14,7 @@ "createdAt" ], "properties": { - "gtsId": { + "type": { "type": "string", "description": "GTS identifier of the VM type", "x-gts-ref": "/$id" @@ -45,7 +45,7 @@ "powerState": { "type": "string", "description": "Current power state of the virtual machine. Reference to gts.x.infra.compute.vm_state.v1~ type.", - "x-gts-ref": "/gts.x.infra.compute.vm_state.v1~" + "x-gts-ref": "gts.x.infra.compute.vm_state.v1~" }, "osType": { "type": "string", @@ -69,4 +69,4 @@ "description": "Additional metadata and platform-specific properties" } } -} \ No newline at end of file +} diff --git a/examples/typespec/vms/schemas/gts.x.infra.compute.vm.v1~.tsp b/examples/typespec/vms/schemas/gts.x.infra.compute.vm.v1~.tsp index aae1c38..3f9f924 100644 --- a/examples/typespec/vms/schemas/gts.x.infra.compute.vm.v1~.tsp +++ b/examples/typespec/vms/schemas/gts.x.infra.compute.vm.v1~.tsp @@ -17,7 +17,7 @@ model BaseVM { * GTS identifier of the VM type */ @extension("x-gts-ref", "/$id") - gtsId: string; + type: string; /** * Unique identifier of the VM instance diff --git a/examples/typespec/vms/schemas/gts.x.infra.compute.vm.v1~nutanix.ahv._.vm.v1~.schema.json b/examples/typespec/vms/schemas/gts.x.infra.compute.vm.v1~nutanix.ahv._.vm.v1~.schema.json index 966fa6b..aab7cdb 100644 --- a/examples/typespec/vms/schemas/gts.x.infra.compute.vm.v1~nutanix.ahv._.vm.v1~.schema.json +++ b/examples/typespec/vms/schemas/gts.x.infra.compute.vm.v1~nutanix.ahv._.vm.v1~.schema.json @@ -11,7 +11,7 @@ { "type": "object", "properties": { - "gtsId": { + "type": { "type": "string", "const": "gts.x.infra.compute.vm.v1~nutanix.ahv._.vm.v1~", "description": "GTS identifier of the VM type", @@ -73,4 +73,4 @@ } } ] -} \ No newline at end of file +} diff --git a/examples/typespec/vms/schemas/gts.x.infra.compute.vm.v1~nutanix.ahv._.vm.v1~.tsp b/examples/typespec/vms/schemas/gts.x.infra.compute.vm.v1~nutanix.ahv._.vm.v1~.tsp index b221059..e2c7e9d 100644 --- a/examples/typespec/vms/schemas/gts.x.infra.compute.vm.v1~nutanix.ahv._.vm.v1~.tsp +++ b/examples/typespec/vms/schemas/gts.x.infra.compute.vm.v1~nutanix.ahv._.vm.v1~.tsp @@ -13,7 +13,7 @@ using TypeSpec.JsonSchema; @jsonSchema("/schemas/gts.x.infra.compute.vm.v1~nutanix.ahv._.vm.v1~.schema.json") model NutanixAHVVM { @extension("x-gts-ref", "/$id") - gtsId: "gts.x.infra.compute.vm.v1~nutanix.ahv._.vm.v1~"; + type: "gts.x.infra.compute.vm.v1~nutanix.ahv._.vm.v1~"; @format("uuid") id: string; @@ -41,7 +41,7 @@ model NutanixAHVVM { environment?: string; owner?: string; - + /** Nutanix-specific metadata (strictly typed) */ metadata?: NutanixMetadata; } diff --git a/examples/typespec/vms/schemas/gts.x.infra.compute.vm.v1~vmware.esxi._.vm.v1~.schema.json b/examples/typespec/vms/schemas/gts.x.infra.compute.vm.v1~vmware.esxi._.vm.v1~.schema.json index 3ace24f..225a8fb 100644 --- a/examples/typespec/vms/schemas/gts.x.infra.compute.vm.v1~vmware.esxi._.vm.v1~.schema.json +++ b/examples/typespec/vms/schemas/gts.x.infra.compute.vm.v1~vmware.esxi._.vm.v1~.schema.json @@ -11,7 +11,7 @@ { "type": "object", "properties": { - "gtsId": { + "type": { "type": "string", "const": "gts.x.infra.compute.vm.v1~vmware.esxi._.vm.v1~", "description": "GTS identifier of the VM type", @@ -70,4 +70,4 @@ } } ] -} \ No newline at end of file +} diff --git a/examples/typespec/vms/schemas/gts.x.infra.compute.vm.v1~vmware.esxi._.vm.v1~.tsp b/examples/typespec/vms/schemas/gts.x.infra.compute.vm.v1~vmware.esxi._.vm.v1~.tsp index 874efe1..58813fc 100644 --- a/examples/typespec/vms/schemas/gts.x.infra.compute.vm.v1~vmware.esxi._.vm.v1~.tsp +++ b/examples/typespec/vms/schemas/gts.x.infra.compute.vm.v1~vmware.esxi._.vm.v1~.tsp @@ -13,7 +13,7 @@ using TypeSpec.JsonSchema; @jsonSchema("/schemas/gts.x.infra.compute.vm.v1~vmware.esxi._.vm.v1~.schema.json") model VMWareESXiVM { @extension("x-gts-ref", "/$id") - gtsId: "gts.x.infra.compute.vm.v1~vmware.esxi._.vm.v1~"; + type: "gts.x.infra.compute.vm.v1~vmware.esxi._.vm.v1~"; @format("uuid") id: string; @@ -41,7 +41,7 @@ model VMWareESXiVM { environment?: string; owner?: string; - + /** VMWare-specific metadata (strictly typed) */ metadata?: VMWareMetadata; } diff --git a/examples/typespec/vms/schemas/gts.x.infra.compute.vm.v1~vz.vz._.vm.v1~.schema.json b/examples/typespec/vms/schemas/gts.x.infra.compute.vm.v1~vz.vz._.vm.v1~.schema.json index e17664f..0df69c6 100644 --- a/examples/typespec/vms/schemas/gts.x.infra.compute.vm.v1~vz.vz._.vm.v1~.schema.json +++ b/examples/typespec/vms/schemas/gts.x.infra.compute.vm.v1~vz.vz._.vm.v1~.schema.json @@ -11,7 +11,7 @@ { "type": "object", "properties": { - "gtsId": { + "type": { "type": "string", "const": "gts.x.infra.compute.vm.v1~vz.vz._.vm.v1~", "description": "GTS identifier of the VM type", @@ -69,4 +69,4 @@ } } ] -} \ No newline at end of file +} diff --git a/examples/typespec/vms/schemas/gts.x.infra.compute.vm.v1~vz.vz._.vm.v1~.tsp b/examples/typespec/vms/schemas/gts.x.infra.compute.vm.v1~vz.vz._.vm.v1~.tsp index cc73174..aee57e6 100644 --- a/examples/typespec/vms/schemas/gts.x.infra.compute.vm.v1~vz.vz._.vm.v1~.tsp +++ b/examples/typespec/vms/schemas/gts.x.infra.compute.vm.v1~vz.vz._.vm.v1~.tsp @@ -13,7 +13,7 @@ using TypeSpec.JsonSchema; @jsonSchema("/schemas/gts.x.infra.compute.vm.v1~vz.vz._.vm.v1~.schema.json") model VirtuozzoVM { @extension("x-gts-ref", "/$id") - gtsId: "gts.x.infra.compute.vm.v1~vz.vz._.vm.v1~"; + type: "gts.x.infra.compute.vm.v1~vz.vz._.vm.v1~"; @format("uuid") id: string; @@ -41,7 +41,7 @@ model VirtuozzoVM { environment?: string; owner?: string; - + /** Virtuozzo-specific metadata (strictly typed) */ metadata?: VirtuozzoMetadata; } diff --git a/examples/yaml/ui/instances/gts.x.ui.core.item.v1~x.ui.components.grid.v1~users_list.yaml b/examples/yaml/ui/instances/gts.x.ui.core.item.v1~x.ui.components.grid.v1~users_list.yaml index 3780891..a3a9d98 100644 --- a/examples/yaml/ui/instances/gts.x.ui.core.item.v1~x.ui.components.grid.v1~users_list.yaml +++ b/examples/yaml/ui/instances/gts.x.ui.core.item.v1~x.ui.components.grid.v1~users_list.yaml @@ -1,4 +1,4 @@ -gtsId: gts.x.ui.core.item.v1~x.ui.components.grid.v1~ +gtsType: gts.x.ui.core.item.v1~x.ui.components.grid.v1~ id: 550e8400-e29b-41d4-a716-446655440012 type: grid label: Users List diff --git a/examples/yaml/ui/instances/gts.x.ui.core.item.v1~x.ui.components.menu_item.v1~main_dashboard.yaml b/examples/yaml/ui/instances/gts.x.ui.core.item.v1~x.ui.components.menu_item.v1~main_dashboard.yaml index 4f4cd80..e3712ad 100644 --- a/examples/yaml/ui/instances/gts.x.ui.core.item.v1~x.ui.components.menu_item.v1~main_dashboard.yaml +++ b/examples/yaml/ui/instances/gts.x.ui.core.item.v1~x.ui.components.menu_item.v1~main_dashboard.yaml @@ -1,4 +1,4 @@ -gtsId: gts.x.ui.core.item.v1~x.ui.components.menu_item.v1~ +gtsType: gts.x.ui.core.item.v1~x.ui.components.menu_item.v1~ id: 550e8400-e29b-41d4-a716-446655440010 type: menu_item label: Dashboard diff --git a/examples/yaml/ui/instances/gts.x.ui.core.item.v1~x.ui.components.menu_item.v1~user_settings.yaml b/examples/yaml/ui/instances/gts.x.ui.core.item.v1~x.ui.components.menu_item.v1~user_settings.yaml index f2dda3f..c703854 100644 --- a/examples/yaml/ui/instances/gts.x.ui.core.item.v1~x.ui.components.menu_item.v1~user_settings.yaml +++ b/examples/yaml/ui/instances/gts.x.ui.core.item.v1~x.ui.components.menu_item.v1~user_settings.yaml @@ -1,4 +1,4 @@ -gtsId: gts.x.ui.core.item.v1~x.ui.components.menu_item.v1~ +gtsType: gts.x.ui.core.item.v1~x.ui.components.menu_item.v1~ id: 550e8400-e29b-41d4-a716-446655440011 type: menu_item label: Settings