Skip to content

Commit

Permalink
Fixed a bug caused when the SchemaGenerationFeature.INLINE_DEFINITION…
Browse files Browse the repository at this point in the history
…S is enabled causing XML schema type references to not be produced for attributes associated with flags. This change restores the correct behavior by adding a type.isGeneratedType conditional check. Resolves usnistgov/liboscal-java#181.
  • Loading branch information
david-waltermire committed Sep 18, 2023
1 parent 9afd340 commit e5337d5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ protected static void generateFlagInstance(@NonNull IFlagInstance instance, @Non

IXmlType type = state.getTypeForDefinition(definition);

if (state.isInline(definition)) {
if (state.isInline(definition) && type.isGeneratedType(state)) {
DocumentationGenerator.generateDocumentation(instance, state);

type.generateType(state, true);
Expand Down

0 comments on commit e5337d5

Please sign in to comment.