Skip to content

Commit

Permalink
Update kubb and leverage new features
Browse files Browse the repository at this point in the history
- Refactor the kubb config
- Make the capital project category enum nullable
- Refactor the params and zod pipes to leverage the coerce feature
and handle the optional cases
- update mvt type information

closes #321
  • Loading branch information
TangoYankee committed Jun 18, 2024
1 parent ffc6bdd commit 60395a6
Show file tree
Hide file tree
Showing 138 changed files with 6,827 additions and 3,525 deletions.
14 changes: 7 additions & 7 deletions kubb.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineConfig } from "@kubb/core";
import createSwagger from "@kubb/swagger";
import createSwaggerTS from "@kubb/swagger-ts";
import createSwaggerZod from "@kubb/swagger-zod";
import { pluginOas } from "@kubb/plugin-oas";
import { pluginZod } from "@kubb/swagger-zod";
import { pluginTs } from "@kubb/swagger-ts";

export default defineConfig({
input: {
Expand All @@ -14,10 +14,10 @@ export default defineConfig({
done: ['prettier --write "./src/gen"', 'eslint "./src/gen" --fix'],
},
plugins: [
createSwagger({ output: false }),
createSwaggerZod({
output: "./zod",
pluginOas(),
pluginZod({
output: { path: "./zod" },
}),
createSwaggerTS({}),
pluginTs({}),
],
});
2 changes: 2 additions & 0 deletions openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -784,10 +784,12 @@ components:
- totalValue
CapitalProjectCategory:
type: string
nullable: true
enum:
- "Fixed Asset"
- "Lump Sum"
- "ITT, Vehicles and Equipment"
- null
description: The type of Capital Project.
CapitalProject:
type: object
Expand Down
Loading

0 comments on commit 60395a6

Please sign in to comment.