Skip to content

Commit

Permalink
remove unsupported operators in angular material object renderer closes
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasBoll committed Jul 16, 2023
1 parent 369370a commit db12562
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/angular-material/src/other/object.renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@ import {
import {
ControlWithDetailProps,
findUISchema,
Generate,
GroupLayout,
isObjectControl,
RankedTester,
rankWith,
setReadonly,
UISchemaElement,
} from '@jsonforms/core';
import { cloneDeep } from 'lodash';

@Component({
selector: 'ObjectRenderer',
Expand All @@ -65,7 +67,14 @@ export class ObjectControlRenderer extends JsonFormsControlWithDetail {
props.schema,
props.uischema.scope,
props.path,
'Group',
() => {
const newSchema = cloneDeep(props.schema);
// delete unsupported operators
delete newSchema.oneOf;
delete newSchema.anyOf;
delete newSchema.allOf;
return Generate.uiSchema(newSchema, 'Group');
},
props.uischema,
props.rootSchema
);
Expand Down

0 comments on commit db12562

Please sign in to comment.