-
Several methods for manipulating the shape of a schema are conspicuously missing just by marking a schema as read-only:
```typescript
import { z } from "zod";
export const EDITION = z.enum(["be…
-
### Describe the bug
Hey there 👋 It's me again! Just popping in to describe some unexpected behavior around param coercion. My pair and I noticed today that visiting a Lookbook preview in a system te…
-
General purpose validation module.
```js
import schema from "@primate/schema";
import array from "@primate/schema/array";
import file from "@primate/schema/file";
import number from "@primate/s…
-
First off, awesome library! I am getting a lot of use out of it.
I got the following error when using this library:
Error:
`auto_adjust failed with unsupported operand type(s) for /: 'str' and …
-
### Question
Hi, I was hoping for a flag or some other method of interpreting a `None` value in json as the default value, such that it would continue to conform to the type of the field (and avoid `…
-
This is my complex object zod definition
```
import { z } from 'zod'
import { FieldDataType } from '../../enums/filed-data-type'
import { FieldDataChromoShow } from '../../enums/field-data-chrom…
-
## The Problem
Using variable as shaped array index `@matrix[$x; $y]` only works if variable is a numeric type. Fails for Str, Match, etc.
```
> my @matrix[2;2]; @matrix['0'; '0'] = True
Parti…
-
A common feature in JSON parsers is automatic object mapping into language data types such as structures, classes, etc.
While not everyone (myself included) likes automatic conversions like this, i…
-
I often wrap newtypes in newtypes and then I want to access the basetype. Example:
```scala
@newtype case class Secret(value: String)
@newtype case class Password(value: Secret)
@newtype case cl…
-
**Describe the bug**
A clear and concise description of what the bug is.
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest v…