Skip to content
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

The multiple Producer configuration is not working #71

Closed
sshemirani opened this issue Jun 7, 2022 · 3 comments
Closed

The multiple Producer configuration is not working #71

sshemirani opened this issue Jun 7, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@sshemirani
Copy link

Hello, it seems that the multiple producer support does not work, it was fixed on this issue #59

Im attaching the project that does not work with multiple producers.

async-api-project.zip

Calling http://localhost:8080/springwolf/docs will bring the following json, but only one producer is in the json!

{
  "Async-api-test": {
    "asyncapi": "2.0.0",
    "info": {
      "title": "Async-api-test",
      "version": "0.0.1"
    },
    "servers": {
      "kafka": {
        "url": "localhost:9092",
        "protocol": "kafka"
      }
    },
    "channels": {
      "ACCOUNT": {
        "subscribe": {
          "bindings": {
            "kafka": {
              
            }
          },
          "message": {
            "name": "com.example.asyncapi.model.ClassB",
            "title": "ClassB",
            "payload": {
              "$ref": "#/components/schemas/ClassB"
            }
          }
        }
      }
    },
    "components": {
      "schemas": {
        "ClassA": {
          "type": "object"
        },
        "ClassB": {
          "type": "object"
        }
      }
    }
  }
}

Thanks

@stavshamir
Copy link
Member

Oops, is this on the last release?

@stavshamir stavshamir self-assigned this Jun 7, 2022
@stavshamir stavshamir added the bug Something isn't working label Jun 7, 2022
@sshemirani
Copy link
Author

Yes indeed.

       <dependency>
            <groupId>io.github.springwolf</groupId>
            <artifactId>springwolf-kafka</artifactId>
            <version>0.5.0</version>
        </dependency>

@stavshamir
Copy link
Member

stavshamir commented Jun 8, 2022

Fixed, please use version springwolf-kafka-0.6.1 and note the the binding field in ProducerData has changed to operationBinding (see https://springwolf.github.io/docs/documenting-producers#producerdata). You can also use the new KafkaProducerData instead.

Thanks for providing the example project, it really helped me nail the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants