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

jsonschema.Marshal #3463

Open
eadlam opened this issue Sep 24, 2024 · 1 comment
Open

jsonschema.Marshal #3463

eadlam opened this issue Sep 24, 2024 · 1 comment
Labels
FeatureRequest New feature or request NeedsInfo More information or clarification needed from the user

Comments

@eadlam
Copy link

eadlam commented Sep 24, 2024

Is your feature request related to a problem? Please describe.
When exporting a config, I sometimes need the value of a field to equal the json-schema of another cue type. For example: LLM tool definitions.

Describe the solution you'd like
Similar to json.Marshal, I would like a jsonschema.Marshal that takes a cue definition and outputs json-schema.

Describe alternatives you've considered
Alternatively, I have to maintain json-schema by hand, or do a two-phase build process.

@eadlam eadlam added FeatureRequest New feature or request Triage Requires triage/attention labels Sep 24, 2024
@mvdan
Copy link
Member

mvdan commented Sep 25, 2024

Do you mean generating jsonschema from CUE? If so, this would be #929.

@mvdan mvdan added NeedsInfo More information or clarification needed from the user and removed Triage Requires triage/attention labels Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FeatureRequest New feature or request NeedsInfo More information or clarification needed from the user
Projects
None yet
Development

No branches or pull requests

2 participants