-
#220
de414dd
Thanks @RealityAnomaly! - Set model-defined props outside constructor to ensureuseDefineForClassFields
compatibility. -
Updated dependencies [
de414dd
]:- @kubernetes-models/[email protected]
- #216
db67b32
Thanks @RealityAnomaly! - Append/index
to generated paths to ensure correct import handling.
-
#199
10ca286
Thanks @tommy351! - If you import files from the_schemas
directory, please note thataddSchema
function is replaced withvalidate
function, and their behavior is totally different. You can follow the example below to migrate your code.// Before import { validate } from "@kubernetes-models/validate"; import { addSchema } from "@kubernetes-models/apimachinery/_schemas/IoK8sApimachineryPkgApisMetaV1ObjectMeta"; addSchema(); validate("io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", { foo: "bar" }); // After import { runValidateFunc } from "@kubernetes-models/validate"; import validate from "@kubernetes-models/apimachinery/_schemas/IoK8sApimachineryPkgApisMetaV1ObjectMeta"; runValidateFunc(validate, { foo: "bar" });
- #199
d076453
Thanks @tommy351! - Pre-compile OpenAPI schema into a validate function. This should improve the performance of first-time validation, but the package size will slightly increase.
- Updated dependencies [
d9aae82
,8440a52
,3a6a6c1
,dba981d
,d076453
,d076453
,8440a52
,d076453
]:- @kubernetes-models/[email protected]
- @kubernetes-models/[email protected]
- Updated dependencies [
915b6dd
]:- @kubernetes-models/[email protected]
- @kubernetes-models/[email protected]
- Updated dependencies [
50d1914
]:- @kubernetes-models/[email protected]
- @kubernetes-models/[email protected]
- Updated dependencies [
09051d0
]:- @kubernetes-models/[email protected]
- @kubernetes-models/[email protected]
-
9816d36
Thanks @tommy351! - Replace non-index files with wildcard pattern (*
) in export map.// Before { "exports": { "./_schemas/IoK8sApimachineryPkgApiResourceQuantity": {}, "./_schemas/IoK8sApimachineryPkgApisMetaV1APIGroup": {} } } // After { "exports": { "./_schemas/*": {} } }
-
767314d
Thanks @tommy351! - Simplify export map.// Before { "exports": { "import": { "types": "./dist/index.d.ts", "default": "./dist/index.mjs" }, "require": { "types": "./dist/index.d.ts", "default": "./dist/index.js" } } } // After { "exports": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", "require": "./dist/index.js" } }
-
Updated dependencies [
767314d
]:- @kubernetes-models/[email protected]
- @kubernetes-models/[email protected]
- #81
ef175ce
Thanks @tommy351! - Enum types was removed in the last version because they are removed from OpenAPI spec inkubernetes
models after v1.24.0 (PR #109178). In order to bring back enum types, I manually generated OpenAPI spec files and stored them in tommy351/kubernetes-openapi-spec repository.
- Updated dependencies [
ac8d1c5
,a0d4e70
,8a99963
]:- @kubernetes-models/[email protected]
- @kubernetes-models/[email protected]
- Updated dependencies [
2b18c6b
,8b610d0
,e904810
]:- @kubernetes-models/[email protected]