swaggest / swgui

Embedded Swagger UI for Go
https://pkg.go.dev/github.com/swaggest/swgui
Apache License 2.0
51 stars 8 forks source link

Add JSON editor to relevant textareas #9

Open vearutop opened 4 years ago

vearutop commented 4 years ago

https://github.com/josdejong/jsoneditor

vearutop commented 4 years ago

Or https://github.com/rjsf-team/react-jsonschema-form if feasible.

joeblew99 commented 2 years ago

hey @vearutop

very cool project !

How about one written in golang compiled to wasm ? Will get to reuse all the existing golang code relating to jsonschema,etc. It will be able to parse the jsonschema easily and display the required editor.

tinygo compilation will make the wasm small.

there is a great golang gui written in go that has the same things in the 2 JS based frameworks above.

Try running this: https://github.com/gioui/gio-example/tree/main/component as it shows off how capable the gioui base is.

If you interested i can help.

vearutop commented 2 years ago

Hi, thanks!

I think gio might be not a good fit for this issue, the idea of this issue is to hijack already existing frontend application (Swagger UI) and alter some of its visual components (replace JSON textareas with dynamic forms).

Related (and more relevant) issue: https://github.com/swagger-api/swagger-ui/issues/2771.