Anmol/update openapi jsonpatch #13
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new release (
0.15.0
) of theschema-sdk
package with several improvements to the OpenAPI TypeScript client generation, including enhanced handling of Kubernetes resource types and support for JSON patching in schema transformations. The most significant changes are the addition of new Kubernetes API interfaces, improved logic for type naming and GVK (Group-Version-Kind) mapping, and expanded test coverage for JSON patch operations.Kubernetes API Type Additions
EventsK8sIoV1Event
,IoK8sApiEventsV1EventSeries
, and a comprehensive set of flow control and priority level configuration types. These additions improve coverage for Kubernetes event and flow control resources. [1] [2] [3]Type Naming and GVK Mapping Improvements
generateQualifiedTypeName
function to better handle List types by using the definition name to determine if a type is a List, resulting in more accurate and consistent type names for both core and non-core resources. [1] [2]generateGVKOpsStatements
andbuildInterfaceRenameMapFromSchema
to ensure that GVKs are mapped to both base and List definitions, preventing loss of associations for List types. [1] [2]JSON Patch Support and Testing
Test and Fixture Updates
Release and Versioning
0.15.0
and updated the changelog to reflect the new release. [1] [2]