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

When inputs and outputs are YAML allow non-string keys (unsupported in JSON) #83

Open
tarasglek opened this issue Sep 9, 2024 · 2 comments

Comments

@tarasglek
Copy link

tarasglek commented Sep 9, 2024

Cool tool. Unfortunately i found a common yaml it can't deal with.
unsupported key type bool when I paste https://github.com/openai/openai-openapi/blob/master/openapi.yaml into http://play.jd-tool.io/

@josephburnett
Copy link
Owner

@tarasglek yeah, jd uses just the subset of YAML that is compatible with JSON. It's primary target is JSON, so it all gets converted internally, but that means you can only have string keys.

I wonder if I should change the internals to operate on YAML types. It's a superset of JSON anyway, and it would be easier to support requests to preserve comments, give errors pointing to specific row/col points, etc...

@josephburnett
Copy link
Owner

@tarasglek I'm going to change to name of this issue to reflect the desire to preserve YAML specific behavior if no JSON input or output is used. That would solve your problem. I'm not sure when I might get around to it though.

@josephburnett josephburnett changed the title openai yaml isn't supported When inputs and outputs are YAML allow non-string keys (unsupported in JSON) Feb 15, 2025
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