Skip to content

feat: Support more filetypes in the output_format.#22

Open
jaqx0r wants to merge 2 commits intoseh:mainfrom
jaqx0r:patch-1
Open

feat: Support more filetypes in the output_format.#22
jaqx0r wants to merge 2 commits intoseh:mainfrom
jaqx0r:patch-1

Conversation

@jaqx0r
Copy link

@jaqx0r jaqx0r commented Aug 13, 2025

cue help filetypes describes a lot more filetypes we can use for output.

I am trying to generate OpenAPI YAML specs from Cue, per https://cuelang.org/docs/concept/how-cue-works-with-openapi/ and seem to be getting something useful when I add the openapi+yaml output format, supported by this change.

jaqx0r added 2 commits August 13, 2025 13:51
`cue help filetypes` describes a lot more filetypes we can use for output.

I am trying to generate OpenAPI YAML specs from Cue, per https://cuelang.org/docs/concept/how-cue-works-with-openapi/ and seem to be getting something useful when I add the `openapi+yaml` output format, supported by this change.
@jaqx0r
Copy link
Author

jaqx0r commented Aug 13, 2025

Cue's rules for output format are much more complex than what I'm proposing, so a future version of this change could be a function instead of a dictionary providing the mapping from the full {tag}[+{tag}]... format supported to a file extension.

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

Successfully merging this pull request may close these issues.

1 participant