⛵
⛵
I totally agree with the use of key-value pairs to store metadata. For the best development experience, I think we should put the metadata in the same array as the...
I strongly agree with adding the metadata object as the last optional argument of each schema function. This approach is not much different on DX compared to using the current...
We should refer to existing popular standards such as [annotations](https://json-schema.org/understanding-json-schema/reference/annotations) for `json-schema`, [parameter](https://spec.openapis.org/oas/latest.html#parameter-object) for `openapi`, [GraphQL](https://graphql.org/) or [ts-doc](https://tsdoc.org/pages/tags/deprecated/). I researched the above specification and came up with some generic metadata...
I don't think SQL properties should be included in the valibot package itself. This is because when dealing with a specific business, the situation is complex and varied. In the...
I'm trying to implement this feature, and the current solution is to use metadata as the last parameter of the schema function. But now I'm facing a tricky problem. TypeScript...
> Weren't the SQL properties the main reason for this feature? Are the properties not standardized? Yes, in fact, there is no standard. In addition, valibot schema does not contain...
> How would you implement `defaultArgs` in this case? ```TypeScript /** * Returns message and pipe from dynamic arguments. * * @param arg1 First argument. * @param arg2 Second argument....
I prefer to use `metadata` as argument, it makes `valibot` more clean when constructing the schema: ```ts // With the new `pipe` function const UserSchema = pipe( object({ id: pipe(string(),...
I've found that having TypeScript accurately infer the metadata type is very helpful in checking the correctness of the program. ```TypeScript const Cat = pipe( object({ id: pipe(string(), primaryKey(), columnName('user_id')),...
I have a detailed implementation of `toMikroEntity` at [valibot-mikro](https://github.com/xcfox/valibot-mikro/blob/main/src/function/defineEntitySchema.ts) When `EntitySchema` is missing a name, `toEntitySchema` throws an error. If TypeScript could hint at this missing name error, then we...