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

Update Schema #516

Open
jcantonio opened this issue Oct 15, 2019 · 1 comment
Open

Update Schema #516

jcantonio opened this issue Oct 15, 2019 · 1 comment

Comments

@jcantonio
Copy link

Hello,
First thanks for this great project.
I ran into the issue when updating a schema.
For an update, I first remove the type then add the new one

delete(schema.TypeMap(), resourceType.Name())
schema.AppendType(resourceType)

It works when the schema doe not contain a field of type object.
But when using an object, it seems that updates have a collision name, as it returns the error:

Schema must contain unique named types but contains multiple types named "objectA".
See code sample:
https://play.golang.org/p/N8iBmXzG-U1

Kind regards,

@jcantonio
Copy link
Author

Hi,
I just provided a pull request to fix it:
#518
Cheers,
JClaude

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