vitalics / ajv-ts

First-class ajv typescript JSON-schema builder inspired from Zod
https://www.npmjs.com/package/ajv-ts
MIT License
43 stars 3 forks source link

[ci] release #63

Closed github-actions[bot] closed 1 month ago

github-actions[bot] commented 2 months ago

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

ajv-ts@0.8.0

Minor Changes

We make validation for number type, format, minValue and maxValue fields. That means we handle it in our side so you get an error for invalid values.

Examples:

```ts
s.number().format("float").int(); // error in type!
s.int().const(3.4); // error in type!
s.number().int().format("float"); // error in format!
s.number().int().format("double"); // error in format!

// ranges are also check for possibility

s.number().min(5).max(3); // error in range!
s.number().min(3).max(5).const(10); // error in constant - out of range!
```

Patch Changes

🏡 Chore/Infra