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

Inheritance on DataType with no properties #2245

Open
romilin opened this issue Aug 8, 2023 · 0 comments
Open

Inheritance on DataType with no properties #2245

romilin opened this issue Aug 8, 2023 · 0 comments

Comments

@romilin
Copy link

romilin commented Aug 8, 2023

Hello @EricWittmann ,

I found a bug :

How to reproduce :

  • Create a new DataType
  • Try to change inheritance type
  • You'll see a error in console and no section inherited schemas will be shown

I'm not sure the bug can be corrected in apicurio-studio, maybe the problem can be solved in the dependancy @apicurio/data-models

I think the solution is either :

  • Adding a null schema (for no properties) management in ChangeSchemaInheritanceCommand.js (@apicurio/data-models)
  • Adding a no property management before launching the command here

What do you think about that ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant