cue icon indicating copy to clipboard operation
cue copied to clipboard

jsonschema.Marshal

Open eadlam opened this issue 5 months ago • 2 comments

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 avatar Sep 24 '24 20:09 eadlam