Skip to content

Commit

Permalink
handle discriminators with no mapping as simply property
Browse files Browse the repository at this point in the history
  • Loading branch information
sserrata committed Aug 22, 2024
1 parent fa8827e commit b8faba2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -535,8 +535,9 @@ function createPropertyDiscriminator(
return undefined;
}

// render as a simple property if there's no mapping
if (discriminator.mapping === undefined) {
return undefined;
return createEdges({ name, schema, required });
}

return create("div", {
Expand Down

0 comments on commit b8faba2

Please sign in to comment.