-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#395 support info-extensions definition in environment #401
#395 support info-extensions definition in environment #401
Conversation
✅ Deploy Preview for springwolf-ui canceled.
|
...rc/main/java/io/github/stavshamir/springwolf/configuration/DefaultAsyncApiDocketService.java
Show resolved
Hide resolved
Thanks @tvahrst for the addition of the extension object in the info docket. We have two questions:
|
...rc/main/java/io/github/stavshamir/springwolf/configuration/DefaultAsyncApiDocketService.java
Outdated
Show resolved
Hide resolved
.../github/stavshamir/springwolf/configuration/DefaultAsyncApiDocketServiceIntegrationTest.java
Show resolved
Hide resolved
Hi Timon, The mapping between ConfigDocket#Info and AsyncAPI happens in And I extended one of the existing Tests to check, whether an extension defined in the environment will be present in the resulting asyncapi (see comment above) |
I tried to extend the I than realized, that So I duplicated Because the custom docket bean is configured with additional consumer and producer definitions (which can not be defined via spring environment), the expected results differ from each other. So I had to provide two expected asyncapi.json files. |
@tvahrst For me this is ready for merging if you reduced the testing in the amqp example (see my other comment). |
@tvahrst In case you find time, feel free to write a couple sentences for the documentation -> springwolf/springwolf.github.io#58 |
This PR contains a little enhancement which allows the definition of extensions (x-...) for the asyncapi-info block in the spring environment (i.e. in application.yml / .properties)