In order to allow a capital project category to be nullable, we can define it in the Open API schema like so:
CapitalProjectCategory:
type: string
nullable: true
enum:
- Fixed Asset
- Lump Sum
- ITT, Vehicles and Equipment
- null
description: The type of Capital Project.
However Kubb generates a type and Zod schema that turns null into a string option for the category enum:
This Kubb issue has been documented before here and here. So this ticket will have Kubb upgraded to v 2.19.6 since that's the version that includes the latest fix for this problem.
Acceptance criteria
[x] Update kubb packages to 2.19.6 in package.json
[x] Address compatibility issues with rest of code
In order to allow a capital project category to be nullable, we can define it in the Open API schema like so:
However Kubb generates a type and Zod schema that turns null into a string option for the category enum:
This Kubb issue has been documented before here and here. So this ticket will have Kubb upgraded to v 2.19.6 since that's the version that includes the latest fix for this problem.
Acceptance criteria