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.
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!
```
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
Strict numbers
We make validation for number
type
,format
,minValue
andmaxValue
fields. That means we handle it in our side so you get an error for invalid values.Examples:
Patch Changes
🏡 Chore/Infra
dist
folderbun-types
dependency