Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Derived Properties #5

Open
nlnw opened this issue Oct 4, 2024 · 1 comment
Open

Feature Request: Derived Properties #5

nlnw opened this issue Oct 4, 2024 · 1 comment

Comments

@nlnw
Copy link

nlnw commented Oct 4, 2024

I like the Advanced Schemas feature. Is it feasible to also support derived properties? For example, have a property "Slug" that's a transform of the "Name" property? I did not find a way to use transform across different properties. Or does this require multiple zod schemas?

@NotWoods
Copy link
Owner

NotWoods commented Oct 5, 2024

As far as I’m aware, this isn’t possible with zod and astro. If there is some way to rename properties in Astro markdown files using a schema I’m happy to try and make that work here too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants