Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fixes typo in error message
  • Loading branch information
spacether committed Dec 8, 2019
commit bb66bd3532d2ee40c5afa96f2ba93ca70466bb04
Original file line number Diff line number Diff line change
Expand Up @@ -1821,7 +1821,7 @@ public CodegenModel fromModel(String name, Schema schema) {
m.xmlName = innerSchema.getXml().getName();
}
if (modelDiscriminators > 1) {
LOGGER.error("Allof composed schema is inherriting >1 descriminator. Only use one discriminator: {}", composed);
LOGGER.error("Allof composed schema is inheriting >1 discriminator. Only use one discriminator: {}", composed);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should error out if the user tries to define multiple discriminators in one schema.


if (modelImplCnt++ > 1) {
Expand Down