launchrctl / web

Launchr Web plugin
Apache License 2.0
1 stars 2 forks source link

Add server support for uiSchema #2

Closed iberdinsky-skilld closed 3 months ago

iberdinsky-skilld commented 4 months ago

On server side in same directory with action.yaml can be optional file ui-schema.yaml

Which can contains custom widgets for defined fields. And if this file exists provide extra field in action response

More info:

https://github.com/launchrctl/launchr/pull/30/files https://rjsf-team.github.io/react-jsonschema-form/docs/api-reference/uiSchema/

So here can be returned uiSchema field which contains schema of uiSchema file

https://github.com/launchrctl/web/blob/main/server/openapi.yaml#L39

iberdinsky-skilld commented 3 months ago

Go work still needed here.

Details explained here https://github.com/launchrctl/web/pull/15/files#diff-3fb3d4184590bc6f747661f3062676031e837b0dd5f2b18640f439be7a2235f6R161