Skip to content

Commit

Permalink
feat(core): add library name to info object extension field (#430)
Browse files Browse the repository at this point in the history
* chore: switch examples to application properties configuration

Remove usage of AsyncApiDocket bean configuration

* chore: update build.gradle dependencies in examples

* feat(core): add library name to info object extension field

* chore: update with jms plugin
  • Loading branch information
timonback authored Nov 24, 2023
1 parent 0013bd1 commit da40754
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public static class Info {
* Extension properties for the Info block.
*/
@Nullable
private Map<String, String> extensionFields;
private Map<String, String> extensionFields = Map.of("x-generator", "springwolf");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ springwolf.docket.info.version=1.0.0
springwolf.docket.info.description=Springwolf example project to demonstrate springwolfs abilities
springwolf.docket.info.terms-of-service=http://asyncapi.org/terms
springwolf.docket.info.extension-fields.x-api-audience=company-internal
springwolf.docket.info.extension-fields.x-generator=springwolf
springwolf.docket.info.contact.name=springwolf
springwolf.docket.info.contact.email=[email protected]
springwolf.docket.info.contact.url=https://github.com/springwolf/springwolf-core
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"name": "Apache License 2.0",
"x-desc": "some description"
},
"x-api-audience": "company-internal"
"x-api-audience": "company-internal",
"x-generator": "springwolf"
},
"defaultContentType": "application/json",
"servers": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spring.cloud.stream.bindings.consumerMethod-in-0.destination=another-topic
# Springwolf configuration
springwolf.enabled=true
springwolf.docket.base-package=io.github.stavshamir.springwolf.example.cloudstream
springwolf.docket.info.title=${spring.application.name}
springwolf.docket.info.title=Springwolf example project - CloudStream
springwolf.docket.info.version=1.0.0
springwolf.docket.info.description=Springwolf example project to demonstrate springwolfs abilities
springwolf.docket.info.terms-of-service=http://asyncapi.org/terms
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
},
"license": {
"name": "Apache License 2.0"
}
},
"x-generator": "springwolf"
},
"defaultContentType": "application/json",
"servers": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
},
"license": {
"name": "Apache License 2.0"
}
},
"x-generator": "springwolf"
},
"defaultContentType": "application/json",
"servers": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
},
"license": {
"name": "Apache License 2.0"
}
},
"x-generator": "springwolf"
},
"defaultContentType": "application/json",
"servers": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
},
"license": {
"name": "Apache License 2.0"
}
},
"x-generator": "springwolf"
},
"defaultContentType": "application/json",
"servers": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
},
"license": {
"name": "Apache License 2.0"
}
},
"x-generator": "springwolf"
},
"defaultContentType": "application/json",
"servers": {
Expand Down

0 comments on commit da40754

Please sign in to comment.