From ab5fab25c96d04ec19f8d16cb9dc162bb4bcf8e3 Mon Sep 17 00:00:00 2001 From: Dmitrii Andreev Date: Mon, 22 Jun 2026 11:13:31 -0500 Subject: [PATCH] HYPERFLEET-1246 - fix: add missing kind field to NodePool creation example The Swagger UI example for NodePool creation was missing the mandatory kind field, causing users to get a validation error when copying the example payload. --- CHANGELOG.md | 10 ++++++++-- main.tsp | 2 +- models/nodepool/example_post.tsp | 1 + schemas/template/openapi.yaml | 3 ++- schemas/template/swagger.yaml | 3 ++- 5 files changed, 14 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 08d8b97..a734da9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.0.24] - 2026-06-22 + +### Fixed + +- Added missing `kind` field to NodePool creation example + ## [1.0.23] - 2026-06-11 ### Removed @@ -85,8 +91,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `hyperfleet` npm dependency for importing shared models and services from the core repository - -[Unreleased]: https://github.com/openshift-hyperfleet/hyperfleet-api-spec-template/compare/v1.0.23...HEAD +[Unreleased]: https://github.com/openshift-hyperfleet/hyperfleet-api-spec-template/compare/v1.0.24...HEAD +[1.0.24]: https://github.com/openshift-hyperfleet/hyperfleet-api-spec-template/compare/v1.0.23...v1.0.24 [1.0.23]: https://github.com/openshift-hyperfleet/hyperfleet-api-spec-template/compare/v1.0.22...v1.0.23 [1.0.22]: https://github.com/openshift-hyperfleet/hyperfleet-api-spec-template/compare/v1.0.21...v1.0.22 [1.0.21]: https://github.com/openshift-hyperfleet/hyperfleet-api-spec-template/compare/v1.0.20...v1.0.21 diff --git a/main.tsp b/main.tsp index e11cef7..2dec215 100644 --- a/main.tsp +++ b/main.tsp @@ -33,7 +33,7 @@ using OpenAPI; */ @service(#{ title: "HyperFleet API" }) @info(#{ - version: "1.0.23", + version: "1.0.24", contact: #{ name: "HyperFleet Team", url: "https://github.com/openshift-hyperfleet", diff --git a/models/nodepool/example_post.tsp b/models/nodepool/example_post.tsp index 570f242..a29640e 100644 --- a/models/nodepool/example_post.tsp +++ b/models/nodepool/example_post.tsp @@ -2,6 +2,7 @@ import "./model.tsp"; import "hyperfleet/shared/models/nodepools/model.tsp"; const exampleNodePoolCreateRequest: NodePoolCreateRequest = #{ + kind: "NodePool", name: "worker-pool-1", labels: #{ environment: "production", pooltype: "worker" }, spec: #{ diff --git a/schemas/template/openapi.yaml b/schemas/template/openapi.yaml index b0268cc..4bcfa02 100644 --- a/schemas/template/openapi.yaml +++ b/schemas/template/openapi.yaml @@ -1,7 +1,7 @@ openapi: 3.0.0 info: title: HyperFleet API - version: 1.0.23 + version: 1.0.24 contact: name: HyperFleet Team url: https://github.com/openshift-hyperfleet @@ -2166,6 +2166,7 @@ components: spec: $ref: '#/components/schemas/NodePoolSpec' example: + kind: NodePool name: worker-pool-1 labels: environment: production diff --git a/schemas/template/swagger.yaml b/schemas/template/swagger.yaml index 9aa21ca..40ecfd9 100644 --- a/schemas/template/swagger.yaml +++ b/schemas/template/swagger.yaml @@ -17,7 +17,7 @@ info: name: Apache 2.0 url: 'https://www.apache.org/licenses/LICENSE-2.0' title: HyperFleet API - version: 1.0.23 + version: 1.0.24 host: hyperfleet.redhat.com basePath: / schemes: @@ -2214,6 +2214,7 @@ definitions: type: object NodePoolCreateRequest: example: + kind: NodePool labels: environment: production pooltype: worker