Skip to content

Commit

Permalink
Merge pull request microservices-patterns#94 from dartartem/development
Browse files Browse the repository at this point in the history
Customized Money in swagger.
  • Loading branch information
cer authored Apr 28, 2020
2 parents 11405a8 + 0500747 commit cdeff90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common-swagger/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ dependencies {
exclude group: "org.springframework"
}
compile "org.springframework.boot:spring-boot-starter-web:$springBootVersion"

compile project(":ftgo-common")
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package net.chrisrichardson.eventstore.examples.customersandorders.commonswagger;

import com.fasterxml.classmate.TypeResolver;
import net.chrisrichardson.ftgo.common.Money;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
Expand Down Expand Up @@ -31,7 +32,8 @@ public Docket api() {
.alternateTypeRules(
newRule(typeResolver.resolve(DeferredResult.class,
typeResolver.resolve(ResponseEntity.class, WildcardType.class)),
typeResolver.resolve(WildcardType.class))
typeResolver.resolve(WildcardType.class)),
newRule(Money.class, String.class)
)
.useDefaultResponseMessages(false)
;
Expand Down

0 comments on commit cdeff90

Please sign in to comment.