Skip to content
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.

ClassCast Exception for the Authorization Attribute #12

Open
rpwils opened this issue Aug 24, 2015 · 0 comments
Open

ClassCast Exception for the Authorization Attribute #12

rpwils opened this issue Aug 24, 2015 · 0 comments

Comments

@rpwils
Copy link

rpwils commented Aug 24, 2015

When a swagger json file has an empty set for Authorization the cod is throwing an ClassCastException
org.glassfish.json.JsonArrayBuilderImpl$JsonArrayImpl cannot be cast to javax.json.JsonObject

This is within SwaggerReaderImpl.
child1 = parser.getChild("authorizations");
if(child1 != null) {
this.readAuthorizations(resourceListing, child1);
}

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

No branches or pull requests

1 participant