Skip to content

1.5.0

Compare
Choose a tag to compare
@github-actions github-actions released this 22 Jun 19:54
· 4 commits to main since this release
1d2eea9

Features

  • Replaced nestjs-zod with zod-openapi. The main benefit is output schemas will now emit OpenApi schemas and consequently TypeScript definitions for endpoint payloads that consider ZodEffects.

Example:

const schema = z.object({
  age: z.number().default(30),
});

The above schema when used in input will still mark age as optional, but when used in output it will not.

type ExampleInput = {
  age?: number;
};

type ExampleOutput = {
  age: number;
};