sanity-typed-schema-builder
sanity-typed-schema-builder copied to clipboard
Build Sanity schemas declaratively and get typescript types of schema values for free!
Thank you for this great package! I've been enjoying using it a lot! Here is my issue: When I copy the example code for `createType` into my project / code...
We need tests for `initialValue` across the board, mainly considering `array` and `objectNamed({ ... }).ref()`. Docs around both are also essential. Original Ticket: When you use an object as a...
Hi, I'm trying to utilize my existing sanity-typed-schema-builder document to create a new Zod document. I want to pick fields from the former to add to the latter. Is this...
It would be great to see a few examples of how this fits into the Sanity schema config. It's probably trivial, but serves as nice resource for newcomers.
I'm not too sure this is an issue with the code, however, with no examples I just cant seem to get this to work properly. Example would be an object...
Hi, I'm interested in using this in our greenfield project. However, I just need guidance on how to start creating for some plugins types that we will use. An example...
I'm attempting to do some pretty complicated block annotations, but this seems to be in the `unknown` typed portion of the library. Are there different rules that apply here? I'm...
As @mckelveygreg made clear in #158, some things about "resolve" are unclear: - `s.resolved` should be the type but with references resolved. Right now it's both parsed AND resolved. These...
I have initialized a clean Sanity repository with `sanity-typed-schema-builder` installed. I export the following: ```ts // product.ts import { s } from "sanity-typed-schema-builder"; export default s.document({ name: "product", fields: [...
`s.crossDatasetReference` https://www.sanity.io/docs/cross-dataset-reference-type I've never used it (it's an enterprise feature) but it's there.