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

Add title property of JSON Schema from zod definitions #121

Open
flower-of-the-bridges opened this issue May 1, 2024 · 2 comments
Open

Comments

@flower-of-the-bridges
Copy link

Hi

I would like to generate a JSON schema like the following:

{
  "type": "object",
  "title": "My Json Schema Title",
  "required": ["someProperty"],
  "properties": {
    "someProperty": {
      "type": "string"
    },
  },
  "additionalProperties": false
}

Is there a way to achieve a JSON Schema like that using zod definitions?

If not, what could be a possible feature to add to the library?

Thanks

@StefanTerdell
Copy link
Owner

I could add an option for it, probably in the coming week :)

@flower-of-the-bridges
Copy link
Author

@StefanTerdell great, thanks!! If you need help, I'd be happy to contribute

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