Skip to content

Commit

Permalink
#102 Check that substitute type is complex before checking if type is…
Browse files Browse the repository at this point in the history
… abstract
  • Loading branch information
seime committed Nov 23, 2020
1 parent cd349fa commit 39a2e74
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,8 @@ private void navigateSubTypes(XSParticle parentParticle, MessageType messageType
allSubtitutables.addAll(subsumptionSubstitutables);

for (XSElementDecl substitutable : allSubtitutables) {
if (substitutable.isAbstract() || substitutable.getType().asComplexType().isAbstract()) {
if (substitutable.isAbstract()
|| (substitutable.getType().isComplexType() && substitutable.getType().asComplexType().isAbstract())) {
// No abstract concept in protobuf, only concrete messages
} else {
addOneOfField(messageType, schemaSet, fieldOptions, fieldLocation, oneOf, substitutable);
Expand Down

0 comments on commit 39a2e74

Please sign in to comment.