diff --git a/kubb.config.ts b/kubb.config.ts index 43b279a9..b4c3980b 100644 --- a/kubb.config.ts +++ b/kubb.config.ts @@ -17,6 +17,7 @@ export default defineConfig({ pluginOas(), pluginZod({ output: { path: "./zod" }, + coercion: true, }), pluginTs({}), ], diff --git a/package-lock.json b/package-lock.json index 7068de50..c5e80207 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,12 +24,12 @@ "devDependencies": { "@anatine/zod-mock": "^3.13.3", "@faker-js/faker": "^8.3.1", - "@kubb/cli": "^2.19.6", - "@kubb/core": "^2.19.6", - "@kubb/swagger": "^2.19.6", - "@kubb/swagger-client": "^2.19.6", - "@kubb/swagger-ts": "^2.19.6", - "@kubb/swagger-zod": "^2.19.6", + "@kubb/cli": "^2.23.3", + "@kubb/core": "^2.23.3", + "@kubb/swagger": "^2.23.3", + "@kubb/swagger-client": "^2.23.3", + "@kubb/swagger-ts": "^2.23.3", + "@kubb/swagger-zod": "^2.23.3", "@nestjs/cli": "^10.0.0", "@nestjs/schematics": "^10.0.0", "@nestjs/testing": "^10.0.0", diff --git a/package.json b/package.json index 74d0972d..92d524ef 100644 --- a/package.json +++ b/package.json @@ -45,12 +45,12 @@ "devDependencies": { "@anatine/zod-mock": "^3.13.3", "@faker-js/faker": "^8.3.1", - "@kubb/cli": "^2.19.6", - "@kubb/core": "^2.19.6", - "@kubb/swagger": "^2.19.6", - "@kubb/swagger-client": "^2.19.6", - "@kubb/swagger-ts": "^2.19.6", - "@kubb/swagger-zod": "^2.19.6", + "@kubb/cli": "^2.23.3", + "@kubb/core": "^2.23.3", + "@kubb/swagger": "^2.23.3", + "@kubb/swagger-client": "^2.23.3", + "@kubb/swagger-ts": "^2.23.3", + "@kubb/swagger-zod": "^2.23.3", "@nestjs/cli": "^10.0.0", "@nestjs/schematics": "^10.0.0", "@nestjs/testing": "^10.0.0", diff --git a/src/gen/zod/operations.ts b/src/gen/zod/operations.ts index 12acefad..187e0fee 100644 --- a/src/gen/zod/operations.ts +++ b/src/gen/zod/operations.ts @@ -158,6 +158,11 @@ export const operations = { 200: findAgenciesQueryResponseSchema, 400: findAgencies400Schema, 500: findAgencies500Schema, + default: findAgenciesQueryResponseSchema, + }, + errors: { + 400: findAgencies400Schema, + 500: findAgencies500Schema, }, }, findBoroughs: { @@ -171,6 +176,11 @@ export const operations = { 200: findBoroughsQueryResponseSchema, 400: findBoroughs400Schema, 500: findBoroughs500Schema, + default: findBoroughsQueryResponseSchema, + }, + errors: { + 400: findBoroughs400Schema, + 500: findBoroughs500Schema, }, }, findCommunityDistrictsByBoroughId: { @@ -185,6 +195,12 @@ export const operations = { 400: findCommunityDistrictsByBoroughId400Schema, 404: findCommunityDistrictsByBoroughId404Schema, 500: findCommunityDistrictsByBoroughId500Schema, + default: findCommunityDistrictsByBoroughIdQueryResponseSchema, + }, + errors: { + 400: findCommunityDistrictsByBoroughId400Schema, + 404: findCommunityDistrictsByBoroughId404Schema, + 500: findCommunityDistrictsByBoroughId500Schema, }, }, findCapitalProjectsByBoroughIdCommunityDistrictId: { @@ -199,6 +215,13 @@ export const operations = { 400: findCapitalProjectsByBoroughIdCommunityDistrictId400Schema, 404: findCapitalProjectsByBoroughIdCommunityDistrictId404Schema, 500: findCapitalProjectsByBoroughIdCommunityDistrictId500Schema, + default: + findCapitalProjectsByBoroughIdCommunityDistrictIdQueryResponseSchema, + }, + errors: { + 400: findCapitalProjectsByBoroughIdCommunityDistrictId400Schema, + 404: findCapitalProjectsByBoroughIdCommunityDistrictId404Schema, + 500: findCapitalProjectsByBoroughIdCommunityDistrictId500Schema, }, }, findCapitalCommitmentsByManagingCodeCapitalProjectId: { @@ -213,6 +236,13 @@ export const operations = { 400: findCapitalCommitmentsByManagingCodeCapitalProjectId400Schema, 404: findCapitalCommitmentsByManagingCodeCapitalProjectId404Schema, 500: findCapitalCommitmentsByManagingCodeCapitalProjectId500Schema, + default: + findCapitalCommitmentsByManagingCodeCapitalProjectIdQueryResponseSchema, + }, + errors: { + 400: findCapitalCommitmentsByManagingCodeCapitalProjectId400Schema, + 404: findCapitalCommitmentsByManagingCodeCapitalProjectId404Schema, + 500: findCapitalCommitmentsByManagingCodeCapitalProjectId500Schema, }, }, findCapitalProjectGeoJsonByManagingCodeCapitalProjectId: { @@ -227,6 +257,13 @@ export const operations = { 400: findCapitalProjectGeoJsonByManagingCodeCapitalProjectId400Schema, 404: findCapitalProjectGeoJsonByManagingCodeCapitalProjectId404Schema, 500: findCapitalProjectGeoJsonByManagingCodeCapitalProjectId500Schema, + default: + findCapitalProjectGeoJsonByManagingCodeCapitalProjectIdQueryResponseSchema, + }, + errors: { + 400: findCapitalProjectGeoJsonByManagingCodeCapitalProjectId400Schema, + 404: findCapitalProjectGeoJsonByManagingCodeCapitalProjectId404Schema, + 500: findCapitalProjectGeoJsonByManagingCodeCapitalProjectId500Schema, }, }, findCapitalProjectByManagingCodeCapitalProjectId: { @@ -241,6 +278,13 @@ export const operations = { 400: findCapitalProjectByManagingCodeCapitalProjectId400Schema, 404: findCapitalProjectByManagingCodeCapitalProjectId404Schema, 500: findCapitalProjectByManagingCodeCapitalProjectId500Schema, + default: + findCapitalProjectByManagingCodeCapitalProjectIdQueryResponseSchema, + }, + errors: { + 400: findCapitalProjectByManagingCodeCapitalProjectId400Schema, + 404: findCapitalProjectByManagingCodeCapitalProjectId404Schema, + 500: findCapitalProjectByManagingCodeCapitalProjectId500Schema, }, }, findCapitalProjectTiles: { @@ -254,6 +298,11 @@ export const operations = { 200: findCapitalProjectTilesQueryResponseSchema, 400: findCapitalProjectTiles400Schema, 500: findCapitalProjectTiles500Schema, + default: findCapitalProjectTilesQueryResponseSchema, + }, + errors: { + 400: findCapitalProjectTiles400Schema, + 500: findCapitalProjectTiles500Schema, }, }, findCityCouncilDistricts: { @@ -267,6 +316,11 @@ export const operations = { 200: findCityCouncilDistrictsQueryResponseSchema, 400: findCityCouncilDistricts400Schema, 500: findCityCouncilDistricts500Schema, + default: findCityCouncilDistrictsQueryResponseSchema, + }, + errors: { + 400: findCityCouncilDistricts400Schema, + 500: findCityCouncilDistricts500Schema, }, }, findCapitalProjectsByCityCouncilId: { @@ -281,6 +335,12 @@ export const operations = { 400: findCapitalProjectsByCityCouncilId400Schema, 404: findCapitalProjectsByCityCouncilId404Schema, 500: findCapitalProjectsByCityCouncilId500Schema, + default: findCapitalProjectsByCityCouncilIdQueryResponseSchema, + }, + errors: { + 400: findCapitalProjectsByCityCouncilId400Schema, + 404: findCapitalProjectsByCityCouncilId404Schema, + 500: findCapitalProjectsByCityCouncilId500Schema, }, }, findCityCouncilDistrictTiles: { @@ -294,6 +354,11 @@ export const operations = { 200: findCityCouncilDistrictTilesQueryResponseSchema, 400: findCityCouncilDistrictTiles400Schema, 500: findCityCouncilDistrictTiles500Schema, + default: findCityCouncilDistrictTilesQueryResponseSchema, + }, + errors: { + 400: findCityCouncilDistrictTiles400Schema, + 500: findCityCouncilDistrictTiles500Schema, }, }, findCommunityDistrictTiles: { @@ -307,6 +372,11 @@ export const operations = { 200: findCommunityDistrictTilesQueryResponseSchema, 400: findCommunityDistrictTiles400Schema, 500: findCommunityDistrictTiles500Schema, + default: findCommunityDistrictTilesQueryResponseSchema, + }, + errors: { + 400: findCommunityDistrictTiles400Schema, + 500: findCommunityDistrictTiles500Schema, }, }, findLandUses: { @@ -320,6 +390,11 @@ export const operations = { 200: findLandUsesQueryResponseSchema, 400: findLandUses400Schema, 500: findLandUses500Schema, + default: findLandUsesQueryResponseSchema, + }, + errors: { + 400: findLandUses400Schema, + 500: findLandUses500Schema, }, }, findTaxLots: { @@ -333,6 +408,11 @@ export const operations = { 200: findTaxLotsQueryResponseSchema, 400: findTaxLots400Schema, 500: findTaxLots500Schema, + default: findTaxLotsQueryResponseSchema, + }, + errors: { + 400: findTaxLots400Schema, + 500: findTaxLots500Schema, }, }, findTaxLotByBbl: { @@ -347,6 +427,12 @@ export const operations = { 400: findTaxLotByBbl400Schema, 404: findTaxLotByBbl404Schema, 500: findTaxLotByBbl500Schema, + default: findTaxLotByBblQueryResponseSchema, + }, + errors: { + 400: findTaxLotByBbl400Schema, + 404: findTaxLotByBbl404Schema, + 500: findTaxLotByBbl500Schema, }, }, findTaxLotGeoJsonByBbl: { @@ -361,6 +447,12 @@ export const operations = { 400: findTaxLotGeoJsonByBbl400Schema, 404: findTaxLotGeoJsonByBbl404Schema, 500: findTaxLotGeoJsonByBbl500Schema, + default: findTaxLotGeoJsonByBblQueryResponseSchema, + }, + errors: { + 400: findTaxLotGeoJsonByBbl400Schema, + 404: findTaxLotGeoJsonByBbl404Schema, + 500: findTaxLotGeoJsonByBbl500Schema, }, }, findZoningDistrictsByTaxLotBbl: { @@ -375,6 +467,12 @@ export const operations = { 400: findZoningDistrictsByTaxLotBbl400Schema, 404: findZoningDistrictsByTaxLotBbl404Schema, 500: findZoningDistrictsByTaxLotBbl500Schema, + default: findZoningDistrictsByTaxLotBblQueryResponseSchema, + }, + errors: { + 400: findZoningDistrictsByTaxLotBbl400Schema, + 404: findZoningDistrictsByTaxLotBbl404Schema, + 500: findZoningDistrictsByTaxLotBbl500Schema, }, }, findZoningDistrictClassesByTaxLotBbl: { @@ -389,6 +487,12 @@ export const operations = { 400: findZoningDistrictClassesByTaxLotBbl400Schema, 404: findZoningDistrictClassesByTaxLotBbl404Schema, 500: findZoningDistrictClassesByTaxLotBbl500Schema, + default: findZoningDistrictClassesByTaxLotBblQueryResponseSchema, + }, + errors: { + 400: findZoningDistrictClassesByTaxLotBbl400Schema, + 404: findZoningDistrictClassesByTaxLotBbl404Schema, + 500: findZoningDistrictClassesByTaxLotBbl500Schema, }, }, findZoningDistrictByZoningDistrictId: { @@ -403,6 +507,12 @@ export const operations = { 400: findZoningDistrictByZoningDistrictId400Schema, 404: findZoningDistrictByZoningDistrictId404Schema, 500: findZoningDistrictByZoningDistrictId500Schema, + default: findZoningDistrictByZoningDistrictIdQueryResponseSchema, + }, + errors: { + 400: findZoningDistrictByZoningDistrictId400Schema, + 404: findZoningDistrictByZoningDistrictId404Schema, + 500: findZoningDistrictByZoningDistrictId500Schema, }, }, findZoningDistrictClassesByZoningDistrictId: { @@ -417,6 +527,12 @@ export const operations = { 400: findZoningDistrictClassesByZoningDistrictId400Schema, 404: findZoningDistrictClassesByZoningDistrictId404Schema, 500: findZoningDistrictClassesByZoningDistrictId500Schema, + default: findZoningDistrictClassesByZoningDistrictIdQueryResponseSchema, + }, + errors: { + 400: findZoningDistrictClassesByZoningDistrictId400Schema, + 404: findZoningDistrictClassesByZoningDistrictId404Schema, + 500: findZoningDistrictClassesByZoningDistrictId500Schema, }, }, findZoningDistrictClasses: { @@ -430,6 +546,11 @@ export const operations = { 200: findZoningDistrictClassesQueryResponseSchema, 400: findZoningDistrictClasses400Schema, 500: findZoningDistrictClasses500Schema, + default: findZoningDistrictClassesQueryResponseSchema, + }, + errors: { + 400: findZoningDistrictClasses400Schema, + 500: findZoningDistrictClasses500Schema, }, }, findZoningDistrictClassCategoryColors: { @@ -443,6 +564,11 @@ export const operations = { 200: findZoningDistrictClassCategoryColorsQueryResponseSchema, 400: findZoningDistrictClassCategoryColors400Schema, 500: findZoningDistrictClassCategoryColors500Schema, + default: findZoningDistrictClassCategoryColorsQueryResponseSchema, + }, + errors: { + 400: findZoningDistrictClassCategoryColors400Schema, + 500: findZoningDistrictClassCategoryColors500Schema, }, }, findZoningDistrictClassByZoningDistrictClassId: { @@ -457,6 +583,13 @@ export const operations = { 400: findZoningDistrictClassByZoningDistrictClassId400Schema, 404: findZoningDistrictClassByZoningDistrictClassId404Schema, 500: findZoningDistrictClassByZoningDistrictClassId500Schema, + default: + findZoningDistrictClassByZoningDistrictClassIdQueryResponseSchema, + }, + errors: { + 400: findZoningDistrictClassByZoningDistrictClassId400Schema, + 404: findZoningDistrictClassByZoningDistrictClassId404Schema, + 500: findZoningDistrictClassByZoningDistrictClassId500Schema, }, }, } as const;