Skip to content

Commit da40754

Browse files
authored
feat(core): add library name to info object extension field (#430)
* 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
1 parent 0013bd1 commit da40754

File tree

9 files changed

+15
-8
lines changed

9 files changed

+15
-8
lines changed

springwolf-core/src/main/java/io/github/stavshamir/springwolf/configuration/properties/SpringwolfConfigProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public static class Info {
150150
* Extension properties for the Info block.
151151
*/
152152
@Nullable
153-
private Map<String, String> extensionFields;
153+
private Map<String, String> extensionFields = Map.of("x-generator", "springwolf");
154154
}
155155
}
156156

springwolf-examples/springwolf-amqp-example/src/main/resources/application.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ springwolf.docket.info.version=1.0.0
2020
springwolf.docket.info.description=Springwolf example project to demonstrate springwolfs abilities
2121
springwolf.docket.info.terms-of-service=http://asyncapi.org/terms
2222
springwolf.docket.info.extension-fields.x-api-audience=company-internal
23+
springwolf.docket.info.extension-fields.x-generator=springwolf
2324
springwolf.docket.info.contact.name=springwolf
2425
springwolf.docket.info.contact.email=[email protected]
2526
springwolf.docket.info.contact.url=https://github.com/springwolf/springwolf-core

springwolf-examples/springwolf-amqp-example/src/test/resources/asyncapi.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"name": "Apache License 2.0",
1515
"x-desc": "some description"
1616
},
17-
"x-api-audience": "company-internal"
17+
"x-api-audience": "company-internal",
18+
"x-generator": "springwolf"
1819
},
1920
"defaultContentType": "application/json",
2021
"servers": {

springwolf-examples/springwolf-cloud-stream-example/src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spring.cloud.stream.bindings.consumerMethod-in-0.destination=another-topic
1616
# Springwolf configuration
1717
springwolf.enabled=true
1818
springwolf.docket.base-package=io.github.stavshamir.springwolf.example.cloudstream
19-
springwolf.docket.info.title=${spring.application.name}
19+
springwolf.docket.info.title=Springwolf example project - CloudStream
2020
springwolf.docket.info.version=1.0.0
2121
springwolf.docket.info.description=Springwolf example project to demonstrate springwolfs abilities
2222
springwolf.docket.info.terms-of-service=http://asyncapi.org/terms

springwolf-examples/springwolf-cloud-stream-example/src/test/resources/asyncapi.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
},
1212
"license": {
1313
"name": "Apache License 2.0"
14-
}
14+
},
15+
"x-generator": "springwolf"
1516
},
1617
"defaultContentType": "application/json",
1718
"servers": {

springwolf-examples/springwolf-jms-example/src/test/resources/asyncapi.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
},
1212
"license": {
1313
"name": "Apache License 2.0"
14-
}
14+
},
15+
"x-generator": "springwolf"
1516
},
1617
"defaultContentType": "application/json",
1718
"servers": {

springwolf-examples/springwolf-kafka-example/src/test/resources/asyncapi.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
},
1212
"license": {
1313
"name": "Apache License 2.0"
14-
}
14+
},
15+
"x-generator": "springwolf"
1516
},
1617
"defaultContentType": "application/json",
1718
"servers": {

springwolf-examples/springwolf-sns-example/src/test/resources/asyncapi.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
},
1212
"license": {
1313
"name": "Apache License 2.0"
14-
}
14+
},
15+
"x-generator": "springwolf"
1516
},
1617
"defaultContentType": "application/json",
1718
"servers": {

springwolf-examples/springwolf-sqs-example/src/test/resources/asyncapi.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
},
1212
"license": {
1313
"name": "Apache License 2.0"
14-
}
14+
},
15+
"x-generator": "springwolf"
1516
},
1617
"defaultContentType": "application/json",
1718
"servers": {

0 commit comments

Comments
 (0)