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

feat(canvasform): Use local SchemaBridge #956

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

lordrip
Copy link
Member

@lordrip lordrip commented Mar 18, 2024

Context

Currently, in case a schema contains a oneOf array, uniforms combines all oneOf definitions in a single schema definition.

The issue with this approach is that it combines potentially non-compatible schemas, like the errorHandler one since we need to specify a single property.

This commit extends the getField method from the uniforms JSONSchemaBridge to add the oneOf definitions into the field, this way, we could use this information in the form to render a UI control to select a given schema

relates: #948
relates: #560

@lordrip lordrip marked this pull request as ready for review March 18, 2024 14:52
@lordrip lordrip force-pushed the feat/use-local-schemabridge branch from 818bffb to 76f0b01 Compare March 18, 2024 14:55
Currently, in case a schema contains a `oneOf` array, `uniforms`
combines all `oneOf` definitions in a single schema definition.

The issue with this approach is that combine potentially non-compatible
schemas, like the `errorHandler` one, since we need to specify a single
property.

This commit extends the `getField` method from the uniforms `JSONSchemaBridge`
to add the `oneOf` definitions into the field, this way, we could use
this information in the form to render an UI control to select a given
schema

relates: KaotoIO#948
relates: KaotoIO#560
@lordrip lordrip force-pushed the feat/use-local-schemabridge branch from 76f0b01 to dae63e8 Compare March 18, 2024 15:02
@lordrip lordrip requested review from igarashitm and tplevko March 18, 2024 15:27
@lordrip lordrip merged commit 0d3e265 into KaotoIO:main Mar 18, 2024
9 checks passed
@lordrip lordrip deleted the feat/use-local-schemabridge branch March 18, 2024 16:04
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.

2 participants