Skip to content

Commit

Permalink
victools#484 remove redundant subtype resolver - already handled by o…
Browse files Browse the repository at this point in the history
…verrideInstanceAttributes
  • Loading branch information
dcdh committed Oct 16, 2024
1 parent 6c385a2 commit 41093d7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 46 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ private void applyToConfigBuilder(SchemaGeneratorGeneralConfigPart configPart) {
configPart.withAdditionalPropertiesResolver(this.createTypePropertyResolver(this::mapAdditionalPropertiesEnumValue, Objects::nonNull));

configPart.withCustomDefinitionProvider(new ExternalRefCustomDefinitionProvider());
configPart.withSubtypeResolver(new MicroProfileOpenApi3AnyOfResolver());
configPart.withDefinitionNamingStrategy(new MicroProfileOpenApi3SchemaDefinitionNamingStrategy(configPart.getDefinitionNamingStrategy()));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ public void testApplyToConfigBuilder() {
Mockito.verify(this.typesInGeneralConfigPart).withAdditionalPropertiesResolver(Mockito.any(ConfigFunction.class));
Mockito.verify(this.typesInGeneralConfigPart).withAdditionalPropertiesResolver(Mockito.any(BiFunction.class));
Mockito.verify(this.typesInGeneralConfigPart).withCustomDefinitionProvider(Mockito.any(ExternalRefCustomDefinitionProvider.class));
Mockito.verify(this.typesInGeneralConfigPart).withSubtypeResolver(Mockito.any(MicroProfileOpenApi3AnyOfResolver.class));
Mockito.verify(this.typesInGeneralConfigPart).getDefinitionNamingStrategy();
Mockito.verify(this.typesInGeneralConfigPart).withDefinitionNamingStrategy(Mockito.any(MicroProfileOpenApi3SchemaDefinitionNamingStrategy.class));

Expand Down

0 comments on commit 41093d7

Please sign in to comment.