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

Bug: Error Handling Circular Inheritance in Schema Models #4

Closed
MZaFaRM opened this issue Nov 15, 2023 · 0 comments · Fixed by #8
Closed

Bug: Error Handling Circular Inheritance in Schema Models #4

MZaFaRM opened this issue Nov 15, 2023 · 0 comments · Fixed by #8
Labels
bug Something isn't working

Comments

@MZaFaRM
Copy link
Owner

MZaFaRM commented Nov 15, 2023

Description:

  • The tool currently raises errors when trying to handle schemas with cyclically inherited models. This issue occurs in scenarios where a model is designed to inherit from another model that, in turn, inherits from the first model, creating a circular dependency.

Steps to Reproduce:

  1. Define two or more models in the schema with circular inheritance (e.g., Model A inherits from Model B, and Model B inherits from Model A).
  2. Run the tool to process this schema.
  3. Observe the error that occurs.

Expected Behavior:

  • Ideally, the tool should be able to handle circular inheritance without throwing errors, allowing for more complex schema designs.

Actual Behavior:

  • When processing a schema with circularly inherited models, the tool fails and throws an error (specific error details would be helpful here).

Impact:

  • This limitation restricts the schema design, preventing the implementation of certain data models which require circular inheritance.
@MZaFaRM MZaFaRM added the bug Something isn't working label Nov 15, 2023
@MZaFaRM MZaFaRM pinned this issue Nov 15, 2023
@MZaFaRM MZaFaRM linked a pull request Nov 21, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant