Skip to content

c# override class name where x-parser-schema-id is present #1510

Closed Answered by jonaslagoni
3p05 asked this question in Q&A
Discussion options

You must be logged in to vote

@3p05 I think there are two ways forward here.

1st one is that you want message.name to be used as the root payload model name, right? If that is the case please create a feature request 🙂

2nd you want to have further control over what value is selected as the model name in the first place, i.e. in this case you don't want x-parser-schema-id but something else. I would create another feature request for this as well 🙂

Furthermore, the AsyncAPI document you have access to really is not optimal for code generation. Cause we have to use best effort to try and guess the names for the generated models, because one was not provided in the schema. Whoever is the owner of the document needs to ch…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@3p05
Comment options

@jonaslagoni
Comment options

@jonaslagoni
Comment options

Answer selected by jonaslagoni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants