Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

json schema? #120

Open
magick93 opened this issue Sep 13, 2021 · 3 comments
Open

json schema? #120

magick93 opened this issue Sep 13, 2021 · 3 comments

Comments

@magick93
Copy link

This is more of a question/discussion than an issue. Apologies if this is not the right forum such a post.

Can cuelang generate a json schema from a cue schema?

If yes, this could be useful, in many ways, but in particular for adding IDE validation of yaml files.

@rawkode
Copy link
Collaborator

rawkode commented Feb 24, 2022

@magick93 sorry I missed this.

Cue can!

cue export —out openapi main.cue

@magick93
Copy link
Author

Wow thats awesome!

Thanks

@rawkode
Copy link
Collaborator

rawkode commented Mar 2, 2022

This OpenAPI output is pretty sweet, though the CUE team are going to add specific JSON Schema support. I'll keep this open until we land it.

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

No branches or pull requests

2 participants