diff --git a/CHANGELOG.md b/CHANGELOG.md index 69695a4..9c1bba3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.0.23] - 2026-06-22 + +### Changed + +- `kind` field on `ObjectReference` is now required (was optional but API validates as mandatory) + +### Removed + +- Unused `ObjectReference2` generic model + ## [1.0.22] - 2026-06-18 ### Fixed @@ -206,7 +216,8 @@ First official stable release of the HyperFleet API specification. - Interactive API documentation -[Unreleased]: https://github.com/openshift-hyperfleet/hyperfleet-api-spec/compare/v1.0.22...HEAD +[Unreleased]: https://github.com/openshift-hyperfleet/hyperfleet-api-spec/compare/v1.0.23...HEAD +[1.0.23]: https://github.com/openshift-hyperfleet/hyperfleet-api-spec/compare/v1.0.22...v1.0.23 [1.0.22]: https://github.com/openshift-hyperfleet/hyperfleet-api-spec/compare/v1.0.21...v1.0.22 [1.0.21]: https://github.com/openshift-hyperfleet/hyperfleet-api-spec/compare/v1.0.20...v1.0.21 [1.0.20]: https://github.com/openshift-hyperfleet/hyperfleet-api-spec/compare/v1.0.18...v1.0.20 diff --git a/main.tsp b/main.tsp index b068683..8ef0c8d 100644 --- a/main.tsp +++ b/main.tsp @@ -30,7 +30,7 @@ using OpenAPI; */ @service(#{ title: "HyperFleet API" }) @info(#{ - version: "1.0.22", + version: "1.0.23", contact: #{ name: "HyperFleet Team", url: "https://github.com/openshift-hyperfleet", diff --git a/package-lock.json b/package-lock.json index 68e09a5..f0ebe93 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "hyperfleet", - "version": "1.0.22", + "version": "1.0.23", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "hyperfleet", - "version": "1.0.22", + "version": "1.0.23", "devDependencies": { "@stoplight/spectral-cli": "6.15.1", "@typespec/compiler": "^1.6.0", diff --git a/package.json b/package.json index 0779718..9ca0f9f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hyperfleet", - "version": "1.0.22", + "version": "1.0.23", "type": "module", "exports": { "./*": "./*" diff --git a/schemas/core/openapi.yaml b/schemas/core/openapi.yaml index 9ea0d9c..0077cd0 100644 --- a/schemas/core/openapi.yaml +++ b/schemas/core/openapi.yaml @@ -1,7 +1,7 @@ openapi: 3.0.0 info: title: HyperFleet API - version: 1.0.22 + version: 1.0.23 contact: name: HyperFleet Team url: https://github.com/openshift-hyperfleet @@ -1766,6 +1766,7 @@ components: Cluster: type: object required: + - kind - name - spec - created_time @@ -1879,6 +1880,7 @@ components: ClusterCreateRequest: type: object required: + - kind - name - spec properties: @@ -2043,6 +2045,7 @@ components: NodePool: type: object required: + - kind - name - spec - created_time @@ -2163,6 +2166,7 @@ components: NodePoolCreateRequest: type: object required: + - kind - name - spec properties: @@ -2198,6 +2202,7 @@ components: NodePoolCreateResponse: type: object required: + - kind - name - spec - created_time @@ -2342,6 +2347,8 @@ components: trace_id: deadbeef12345678 ObjectReference: type: object + required: + - kind properties: id: type: string diff --git a/shared/models/common/model.tsp b/shared/models/common/model.tsp index 969aa0d..852cc26 100644 --- a/shared/models/common/model.tsp +++ b/shared/models/common/model.tsp @@ -23,20 +23,11 @@ model ObjectReference { ...ID; /** Resource kind */ - kind?: string; + kind: string; /** Resource URI */ href?: string; } -model ObjectReference2 { - ...ID; - - /** Resource kind */ - kind: Kind; - - /** Resource URI */ - href: string; -} /** * Field-level validation error detail