UNPKG

@asyncapi/java-spring-cloud-stream-template

Version:

Java Spring Cloud Stream template for AsyncAPI generator.

39 lines (38 loc) 835 B
components: schemas: Dog: type: object properties: name: type: string Cat: type: object properties: name: type: string messages: DogMessage: payload: $ref: '#/components/schemas/Dog' CatMessage: payload: $ref: '#/components/schemas/Cat' channels: 'animals': publish: x-scs-function-name: sameFunctionName message: oneOf: - $ref: '#/components/messages/CatMessage' - $ref: '#/components/messages/DogMessage' subscribe: x-scs-function-name: sameFunctionName message: oneOf: - $ref: '#/components/messages/CatMessage' - $ref: '#/components/messages/DogMessage' asyncapi: 2.0.0 info: description: Testing oneOf title: animals version: 0.0.1