Skip to content

Make components section usable in case of code-first generationΒ #72

@indijones

Description

@indijones

What would you like to be added?

In the current version 3.0.6 the code-first approach for generating documents using annotations on c# classes fills out the following sections of the asyncapi v3 specification:

  • channels
  • operations
    That results in the following behavior: Message schemas are directly embedded into the channels.messages section instead of putting them into the components.messages section and referencing them from the channels.messages.

Therefore it would be great if the code-first generator would support a similar functionality as when defining the documents with the FluentBuilder. There it is possible use either "WithMessage" to embed directly or to use "WithMessageComponent" to add the message under components.

Proposal(s):

Add the same functionality as already used inside of the FluentBuilder into the Generator.

Alternative(s):

No response

Additional info:

No response

Community Notes

  • Please vote by adding a πŸ‘ reaction to the feature to help us prioritize.
  • If you are interested to work on this feature, please leave a comment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions