diff --git a/src/components/Schema/Schema.tsx b/src/components/Schema/Schema.tsx index 2a533190..91553ce8 100644 --- a/src/components/Schema/Schema.tsx +++ b/src/components/Schema/Schema.tsx @@ -43,9 +43,10 @@ export class Schema extends React.Component> { if (discriminatorProp !== undefined) { if (!oneOf || !oneOf.length) { - throw new Error( + console.warn( `Looks like you are using discriminator wrong: you don't have any definition inherited from the ${schema.title}`, ); + return null; } return (