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

Herency #66

Closed
Anaster666 opened this issue Dec 10, 2020 · 2 comments
Closed

Herency #66

Anaster666 opened this issue Dec 10, 2020 · 2 comments
Labels
🐛 bug Something isn't working

Comments

@Anaster666
Copy link

Is possible use classes that using herency? I use it to have a basic structure for every event and I add the necessary fields.

public class SyncDocumentIntegrationEvent : IntEvent
{
public int DocumentId { get; }
public int UserId { get; }

    public SyncDocumentIntegrationEvent(int documentId, int userId) : base()
    {
        DocumentId = documentId;
        UserId = userId;
    }
}

The document generated by asyncAPI is enormous and breaks the structure:

I'm doing something wrong?

Thanks for the help.

@m-wild m-wild added the 🐛 bug Something isn't working label Dec 17, 2020
@m-wild
Copy link
Collaborator

m-wild commented Dec 17, 2020

Would be fixed by #60

@m-wild
Copy link
Collaborator

m-wild commented Jul 19, 2021

This is partially supported by using the [Discriminator] attribute
https://github.com/tehmantra/saunter/blob/291d2aa30fe054331106442bc8a4d9bc23bcdea3/test/Saunter.Tests/Generation/SchemaGeneration/SchemaGenerationTests.cs#L177

This issue will be closed in favor of #60

@m-wild m-wild closed this as completed Jul 19, 2021
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