-
Notifications
You must be signed in to change notification settings - Fork 366
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
fix NovaFlavor , add @JsonIgnore to Boolean isPublic() #820
Conversation
@zizhongwei Why ignoring the attribute? From what I can see here https://github.com/ContainX/openstack4j/blob/master/core/src/main/java/org/openstack4j/openstack/compute/domain/NovaFlavor.java#L45 only |
In class NovaFlavor , the get method named "isPublic()" returns a Boolean value. when the object of this class was converted to JSON ,the JSON String will have a property 'public' ,But we also added the @JsonProperty("os-flavor-access:is_public") on the same property ,so the converted JSON String will have two property : "public" & "os-flavor-access:is_public" in JSON String, but the property : "public" is unexpected ;like this: when use this JSON String to call the create API,it will retunt BAD_REQUEST : so we need to add @JsonIgnore on "Boolean isPublic()" to remove the unexpected property 'public' and remain the property "os-flavor-access:is_public" in the JSON String |
Mh. Not quite sure where the |
same thought @auhlig need more time to investigate on this, what do you think? |
Any volunteers? ;) |
We have seen same problem here. |
LGTM |
|
Thanks for the work @biogerm . |
fix NovaFlavor , add @JsonIgnore to Boolean isPublic()
issues : #818