You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem - no schema for headers (HeadersNotDocumented) defined in Kafka Listeners.
As we have many listeners like this, for user there is no way to test them.
Dependencies and versions used
implementation 'io.github.springwolf:springwolf-kafka:1.0.0'
implementation 'io.github.springwolf:springwolf-ui:1.0.0'
Code example
Workaround used around this issue:
`@Component
public class CustomAsyncApiCustomizer implements AsyncApiCustomizer {
@Override
public void customize(AsyncAPI asyncAPI) {
var components = asyncAPI.getComponents();
var notDocumentedHeaders = components.getSchemas().get("HeadersNotDocumented");
notDocumentedHeaders.setType("object");
var exampleHeader = new HashMap<String, String>();
exampleHeader.put("key", "value");
notDocumentedHeaders.setExamples(List.of(exampleHeader));`
Stack trace and error logs
No errors, just missing user experience
Created pr changing default ui behavior - hiding headers without schema or examples #649
The text was updated successfully, but these errors were encountered:
Problem - no schema for headers (HeadersNotDocumented) defined in Kafka Listeners.
As we have many listeners like this, for user there is no way to test them.
Dependencies and versions used
implementation 'io.github.springwolf:springwolf-kafka:1.0.0'
implementation 'io.github.springwolf:springwolf-ui:1.0.0'
Code example
Workaround used around this issue:
`@Component
public class CustomAsyncApiCustomizer implements AsyncApiCustomizer {
Stack trace and error logs
No errors, just missing user experience
Created pr changing default ui behavior - hiding headers without schema or examples
#649
The text was updated successfully, but these errors were encountered: