Skip to content

Commit

Permalink
Update to kubb 2.23
Browse files Browse the repository at this point in the history
Update kubb packages
Opt in to zod coercion

closes #346
  • Loading branch information
TangoYankee committed Jul 25, 2024
1 parent 27f557f commit b406a69
Show file tree
Hide file tree
Showing 4 changed files with 146 additions and 12 deletions.
1 change: 1 addition & 0 deletions kubb.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default defineConfig({
pluginOas(),
pluginZod({
output: { path: "./zod" },
coercion: true,
}),
pluginTs({}),
],
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
133 changes: 133 additions & 0 deletions src/gen/zod/operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ export const operations = {
200: findAgenciesQueryResponseSchema,
400: findAgencies400Schema,
500: findAgencies500Schema,
default: findAgenciesQueryResponseSchema,
},
errors: {
400: findAgencies400Schema,
500: findAgencies500Schema,
},
},
findBoroughs: {
Expand All @@ -171,6 +176,11 @@ export const operations = {
200: findBoroughsQueryResponseSchema,
400: findBoroughs400Schema,
500: findBoroughs500Schema,
default: findBoroughsQueryResponseSchema,
},
errors: {
400: findBoroughs400Schema,
500: findBoroughs500Schema,
},
},
findCommunityDistrictsByBoroughId: {
Expand All @@ -185,6 +195,12 @@ export const operations = {
400: findCommunityDistrictsByBoroughId400Schema,
404: findCommunityDistrictsByBoroughId404Schema,
500: findCommunityDistrictsByBoroughId500Schema,
default: findCommunityDistrictsByBoroughIdQueryResponseSchema,
},
errors: {
400: findCommunityDistrictsByBoroughId400Schema,
404: findCommunityDistrictsByBoroughId404Schema,
500: findCommunityDistrictsByBoroughId500Schema,
},
},
findCapitalProjectsByBoroughIdCommunityDistrictId: {
Expand All @@ -199,6 +215,13 @@ export const operations = {
400: findCapitalProjectsByBoroughIdCommunityDistrictId400Schema,
404: findCapitalProjectsByBoroughIdCommunityDistrictId404Schema,
500: findCapitalProjectsByBoroughIdCommunityDistrictId500Schema,
default:
findCapitalProjectsByBoroughIdCommunityDistrictIdQueryResponseSchema,
},
errors: {
400: findCapitalProjectsByBoroughIdCommunityDistrictId400Schema,
404: findCapitalProjectsByBoroughIdCommunityDistrictId404Schema,
500: findCapitalProjectsByBoroughIdCommunityDistrictId500Schema,
},
},
findCapitalCommitmentsByManagingCodeCapitalProjectId: {
Expand All @@ -213,6 +236,13 @@ export const operations = {
400: findCapitalCommitmentsByManagingCodeCapitalProjectId400Schema,
404: findCapitalCommitmentsByManagingCodeCapitalProjectId404Schema,
500: findCapitalCommitmentsByManagingCodeCapitalProjectId500Schema,
default:
findCapitalCommitmentsByManagingCodeCapitalProjectIdQueryResponseSchema,
},
errors: {
400: findCapitalCommitmentsByManagingCodeCapitalProjectId400Schema,
404: findCapitalCommitmentsByManagingCodeCapitalProjectId404Schema,
500: findCapitalCommitmentsByManagingCodeCapitalProjectId500Schema,
},
},
findCapitalProjectGeoJsonByManagingCodeCapitalProjectId: {
Expand All @@ -227,6 +257,13 @@ export const operations = {
400: findCapitalProjectGeoJsonByManagingCodeCapitalProjectId400Schema,
404: findCapitalProjectGeoJsonByManagingCodeCapitalProjectId404Schema,
500: findCapitalProjectGeoJsonByManagingCodeCapitalProjectId500Schema,
default:
findCapitalProjectGeoJsonByManagingCodeCapitalProjectIdQueryResponseSchema,
},
errors: {
400: findCapitalProjectGeoJsonByManagingCodeCapitalProjectId400Schema,
404: findCapitalProjectGeoJsonByManagingCodeCapitalProjectId404Schema,
500: findCapitalProjectGeoJsonByManagingCodeCapitalProjectId500Schema,
},
},
findCapitalProjectByManagingCodeCapitalProjectId: {
Expand All @@ -241,6 +278,13 @@ export const operations = {
400: findCapitalProjectByManagingCodeCapitalProjectId400Schema,
404: findCapitalProjectByManagingCodeCapitalProjectId404Schema,
500: findCapitalProjectByManagingCodeCapitalProjectId500Schema,
default:
findCapitalProjectByManagingCodeCapitalProjectIdQueryResponseSchema,
},
errors: {
400: findCapitalProjectByManagingCodeCapitalProjectId400Schema,
404: findCapitalProjectByManagingCodeCapitalProjectId404Schema,
500: findCapitalProjectByManagingCodeCapitalProjectId500Schema,
},
},
findCapitalProjectTiles: {
Expand All @@ -254,6 +298,11 @@ export const operations = {
200: findCapitalProjectTilesQueryResponseSchema,
400: findCapitalProjectTiles400Schema,
500: findCapitalProjectTiles500Schema,
default: findCapitalProjectTilesQueryResponseSchema,
},
errors: {
400: findCapitalProjectTiles400Schema,
500: findCapitalProjectTiles500Schema,
},
},
findCityCouncilDistricts: {
Expand All @@ -267,6 +316,11 @@ export const operations = {
200: findCityCouncilDistrictsQueryResponseSchema,
400: findCityCouncilDistricts400Schema,
500: findCityCouncilDistricts500Schema,
default: findCityCouncilDistrictsQueryResponseSchema,
},
errors: {
400: findCityCouncilDistricts400Schema,
500: findCityCouncilDistricts500Schema,
},
},
findCapitalProjectsByCityCouncilId: {
Expand All @@ -281,6 +335,12 @@ export const operations = {
400: findCapitalProjectsByCityCouncilId400Schema,
404: findCapitalProjectsByCityCouncilId404Schema,
500: findCapitalProjectsByCityCouncilId500Schema,
default: findCapitalProjectsByCityCouncilIdQueryResponseSchema,
},
errors: {
400: findCapitalProjectsByCityCouncilId400Schema,
404: findCapitalProjectsByCityCouncilId404Schema,
500: findCapitalProjectsByCityCouncilId500Schema,
},
},
findCityCouncilDistrictTiles: {
Expand All @@ -294,6 +354,11 @@ export const operations = {
200: findCityCouncilDistrictTilesQueryResponseSchema,
400: findCityCouncilDistrictTiles400Schema,
500: findCityCouncilDistrictTiles500Schema,
default: findCityCouncilDistrictTilesQueryResponseSchema,
},
errors: {
400: findCityCouncilDistrictTiles400Schema,
500: findCityCouncilDistrictTiles500Schema,
},
},
findCommunityDistrictTiles: {
Expand All @@ -307,6 +372,11 @@ export const operations = {
200: findCommunityDistrictTilesQueryResponseSchema,
400: findCommunityDistrictTiles400Schema,
500: findCommunityDistrictTiles500Schema,
default: findCommunityDistrictTilesQueryResponseSchema,
},
errors: {
400: findCommunityDistrictTiles400Schema,
500: findCommunityDistrictTiles500Schema,
},
},
findLandUses: {
Expand All @@ -320,6 +390,11 @@ export const operations = {
200: findLandUsesQueryResponseSchema,
400: findLandUses400Schema,
500: findLandUses500Schema,
default: findLandUsesQueryResponseSchema,
},
errors: {
400: findLandUses400Schema,
500: findLandUses500Schema,
},
},
findTaxLots: {
Expand All @@ -333,6 +408,11 @@ export const operations = {
200: findTaxLotsQueryResponseSchema,
400: findTaxLots400Schema,
500: findTaxLots500Schema,
default: findTaxLotsQueryResponseSchema,
},
errors: {
400: findTaxLots400Schema,
500: findTaxLots500Schema,
},
},
findTaxLotByBbl: {
Expand All @@ -347,6 +427,12 @@ export const operations = {
400: findTaxLotByBbl400Schema,
404: findTaxLotByBbl404Schema,
500: findTaxLotByBbl500Schema,
default: findTaxLotByBblQueryResponseSchema,
},
errors: {
400: findTaxLotByBbl400Schema,
404: findTaxLotByBbl404Schema,
500: findTaxLotByBbl500Schema,
},
},
findTaxLotGeoJsonByBbl: {
Expand All @@ -361,6 +447,12 @@ export const operations = {
400: findTaxLotGeoJsonByBbl400Schema,
404: findTaxLotGeoJsonByBbl404Schema,
500: findTaxLotGeoJsonByBbl500Schema,
default: findTaxLotGeoJsonByBblQueryResponseSchema,
},
errors: {
400: findTaxLotGeoJsonByBbl400Schema,
404: findTaxLotGeoJsonByBbl404Schema,
500: findTaxLotGeoJsonByBbl500Schema,
},
},
findZoningDistrictsByTaxLotBbl: {
Expand All @@ -375,6 +467,12 @@ export const operations = {
400: findZoningDistrictsByTaxLotBbl400Schema,
404: findZoningDistrictsByTaxLotBbl404Schema,
500: findZoningDistrictsByTaxLotBbl500Schema,
default: findZoningDistrictsByTaxLotBblQueryResponseSchema,
},
errors: {
400: findZoningDistrictsByTaxLotBbl400Schema,
404: findZoningDistrictsByTaxLotBbl404Schema,
500: findZoningDistrictsByTaxLotBbl500Schema,
},
},
findZoningDistrictClassesByTaxLotBbl: {
Expand All @@ -389,6 +487,12 @@ export const operations = {
400: findZoningDistrictClassesByTaxLotBbl400Schema,
404: findZoningDistrictClassesByTaxLotBbl404Schema,
500: findZoningDistrictClassesByTaxLotBbl500Schema,
default: findZoningDistrictClassesByTaxLotBblQueryResponseSchema,
},
errors: {
400: findZoningDistrictClassesByTaxLotBbl400Schema,
404: findZoningDistrictClassesByTaxLotBbl404Schema,
500: findZoningDistrictClassesByTaxLotBbl500Schema,
},
},
findZoningDistrictByZoningDistrictId: {
Expand All @@ -403,6 +507,12 @@ export const operations = {
400: findZoningDistrictByZoningDistrictId400Schema,
404: findZoningDistrictByZoningDistrictId404Schema,
500: findZoningDistrictByZoningDistrictId500Schema,
default: findZoningDistrictByZoningDistrictIdQueryResponseSchema,
},
errors: {
400: findZoningDistrictByZoningDistrictId400Schema,
404: findZoningDistrictByZoningDistrictId404Schema,
500: findZoningDistrictByZoningDistrictId500Schema,
},
},
findZoningDistrictClassesByZoningDistrictId: {
Expand All @@ -417,6 +527,12 @@ export const operations = {
400: findZoningDistrictClassesByZoningDistrictId400Schema,
404: findZoningDistrictClassesByZoningDistrictId404Schema,
500: findZoningDistrictClassesByZoningDistrictId500Schema,
default: findZoningDistrictClassesByZoningDistrictIdQueryResponseSchema,
},
errors: {
400: findZoningDistrictClassesByZoningDistrictId400Schema,
404: findZoningDistrictClassesByZoningDistrictId404Schema,
500: findZoningDistrictClassesByZoningDistrictId500Schema,
},
},
findZoningDistrictClasses: {
Expand All @@ -430,6 +546,11 @@ export const operations = {
200: findZoningDistrictClassesQueryResponseSchema,
400: findZoningDistrictClasses400Schema,
500: findZoningDistrictClasses500Schema,
default: findZoningDistrictClassesQueryResponseSchema,
},
errors: {
400: findZoningDistrictClasses400Schema,
500: findZoningDistrictClasses500Schema,
},
},
findZoningDistrictClassCategoryColors: {
Expand All @@ -443,6 +564,11 @@ export const operations = {
200: findZoningDistrictClassCategoryColorsQueryResponseSchema,
400: findZoningDistrictClassCategoryColors400Schema,
500: findZoningDistrictClassCategoryColors500Schema,
default: findZoningDistrictClassCategoryColorsQueryResponseSchema,
},
errors: {
400: findZoningDistrictClassCategoryColors400Schema,
500: findZoningDistrictClassCategoryColors500Schema,
},
},
findZoningDistrictClassByZoningDistrictClassId: {
Expand All @@ -457,6 +583,13 @@ export const operations = {
400: findZoningDistrictClassByZoningDistrictClassId400Schema,
404: findZoningDistrictClassByZoningDistrictClassId404Schema,
500: findZoningDistrictClassByZoningDistrictClassId500Schema,
default:
findZoningDistrictClassByZoningDistrictClassIdQueryResponseSchema,
},
errors: {
400: findZoningDistrictClassByZoningDistrictClassId400Schema,
404: findZoningDistrictClassByZoningDistrictClassId404Schema,
500: findZoningDistrictClassByZoningDistrictClassId500Schema,
},
},
} as const;
Expand Down

0 comments on commit b406a69

Please sign in to comment.