-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Support for $ref part 2 #12
Comments
Hello @softprops, thanks for this crate. I'd like to ask whether there is a plan to support the deserialization of |
@matusf I think I've implemented what you ask for https://github.com/JordiPolo/oas_proxy/blob/master/openapi_utils/src/dereferer.rs#L12-L31 If @softprops would like this functionality in his library, I'm happy to open a PR with what I have and take it from there |
Thank you so much! It's exactly what I hoped for :) |
That would be great |
Support for $ref as text was added before. But ideally these $ref are deserialized into pointers to other structs or something like that.
The deserialization should fail if the ref does not point to any known point.
To validate if a ref exist in the doc I'm doing this really really terrible code:
https://github.com/JordiPolo/oatool/blob/master/src/main.rs#L26
If real support is added, then all this code disappears as a non-proper ref would cause deserialization error.
The text was updated successfully, but these errors were encountered: