Skip to content

Commit

Permalink
perf($Swagger): correct Swagger switch logic
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnymillergh committed Mar 23, 2021
1 parent 7804da0 commit e72e8de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private ApiInfo apiInfo() {
public Docket docket(MafProjectProperty mafProjectProperty) {
log.warn("Initial bean: '{}'", Docket.class.getSimpleName());
return new Docket(DocumentationType.SWAGGER_2)
.enable(mafConfiguration.getSwaggerDisabled())
.enable(!mafConfiguration.getSwaggerDisabled())
.apiInfo(apiInfo())
.select()
.apis(RequestHandlerSelectors.basePackage(mafProjectProperty.getBasePackage()))
Expand Down

0 comments on commit e72e8de

Please sign in to comment.