jsoneditor icon indicating copy to clipboard operation
jsoneditor copied to clipboard

YAML support

Open LukeHagar opened this issue 1 year ago • 1 comments

Hey @josdejong!

First off, I am a HUGE fan of this package, and I use it every chance I get :)

For example: https://oas-def-gen.lukehagar.com

I am curious if YAML language support is possible for this package.

The example above is a good one to show why I would love yaml language support in this editor, the right-hand side of this page swaps between yaml and JSON output, and it would be cool to use this editor on the right as well.

But even further than that I want to build out an editor for OpenAPI Specifications, and the tree-style functionality you have for JSON is PERFECT for the tool I want to build out in YAML.

LukeHagar avatar Jan 18 '24 15:01 LukeHagar

Thanks, glad to hear you like the editor! Looking at your application I see you're using svelte-jsoneditor, the successor of jsoneditor.

  • About jsoneditor: there is no support for YAML or other JSON dialects right now, and it's not on the roadmap to add support for it any time soon. See also #658, #972
  • About svelte-jsoneditor: see https://github.com/josdejong/svelte-jsoneditor/discussions/357

josdejong avatar Jan 19 '24 08:01 josdejong