Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update kubb and leverage new features #326

Merged
merged 1 commit into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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({}),
],
});
4 changes: 3 additions & 1 deletion 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 Expand Up @@ -1160,7 +1162,7 @@ components:
application/x-protobuf:
schema:
type: string
format: binary
format: byte
BadRequest:
description: Invalid client request
content:
Expand Down
Loading