-
Notifications
You must be signed in to change notification settings - Fork 30
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
Unable to Get Array Items' Ref #234
Comments
@dillonredding , that behavior definitely looks wrong, not consistent with what's described in our docs here. How are you parsing the model? From a string, a file, URI or URL? Is there anything between the parse and the FYI, we will most likely not have bandwidth on the RepreZen team to look at this for a while. If you are inclined to dig into the code yourself and try to find the root cause of this, we'd appreciate the help. If not, I'm sorry we couldn't turn around a quick fix or a better explanation at this time. |
I'm reading it from a file. I tried removing any intermediary processing with the following example, but still get the same result.
|
I get the same parsing as a string
a URI
and a URL
I might be able to take a stab at digging into the code. |
This issue appears to be in
In my case, I'll keep digging and try to figure out a fix. Until then, any recommendations, @tedepstein? |
@dillonredding , many of the classes are generated by JSON Overlay; and there aren't any docs available on that project yet. I don't really have intimate knowledge of this code, and don't have capacity on the development team right now to look at this. I've been digging into it for a while now, just trying to get my head around it. I was hoping to find a recent change that might account for the breakage, because this seems like the kind of thing that "must have worked at some point." Subschemas, like the Seeing that this is not working in your case would seem to mean either:
Again, sorry that I cannot be of more immediate help. We'll get to it as soon as we can. |
@dillonredding , just a quick question: Why do you need to inspect the I imagine you have a good reason. But in my earlier research, it looked like most of our use cases lean pretty heavily on automatic resolution of refs, and then don't care about the original $ref value, only the resolved object graph. I don't have high confidence in this theory, because I haven't looked comprehensively at all of our code that uses KaiZen Parser. But if this is largely correct, that might explain why something that seems pretty fundamental is broken, and has been for some time. And then we can feel a little more comfortable just pushing forward with a fix. |
@tedepstein, I'm creating a Maven plugin that will generate Java classes based on the schemas in an OpenAPI spec. In the case of an In my original example, you'd get a class for the
And the class for the
If the items aren't a reference and, say, of type |
@dillonredding I am doing a similar code generation tool to what you referred to above. Did you ever solve this issue? |
@pconrey No, I eventually dropped this effort since it ultimately contradicted some fundamental principles of REST architecture |
Perhaps I'm missing something, but I can't seem to get the reference of an array's items.
Given the spec:
This returns
false
:The text was updated successfully, but these errors were encountered: