-
Notifications
You must be signed in to change notification settings - Fork 534
$ref in additionalProperties in external yaml ignored #342
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
Comments
This is not implemented |
@fehguy When you say it's not implemented, is it that this is currently not implemented in YAML? IT looks like there are tests to cover this in JSON processing. I ask because there's a related issue reported to swagger-codegen (swagger-api/swagger-codegen#5753). |
hmm. As of december last year it wasn't implemented, and it shouldn't matter if it's JSON or YAML for how the parser works. Where are the tests that you've seen? |
@fehguy it looked like tests hitting this file should have covered it. Specifically testLoadRelativeFileTree_Json and testLoadRelativeFileTree_Yaml look like they'd cover JSON and YAML of this scenario, although I can't seem to find the yaml file referenced in that last test. Maybe the test is parsing JSON and passing? I didn't dig much deeper than that. |
thanks @jimschubert I'll get into this one shortly |
We just ran up against this. Any news or updates? I also left a more detailed question on the linked codegen ticket - don't think that impacts here, but it may. |
Ugh, sorry, this got lost. We'll try to have a look at it soon. |
fixing bug resolving additionalProperties #342
…solving Schema with Additional properties was not solving remote refs #342
Hi, Please check in branch 2.0, we merged a PR solving the issue. @slarti-b @jimschubert @rakus |
Closing Issue, please report again if this keeps presenting |
Initially opened against swagger codegen as #4135. They send me here.
It seems that swagger-parser cannot handle a $ref below
additionalProperties
in a external yaml file.Example:
swagger.yaml
globals.yaml
After parsing the object
rel-data
(globals.yaml#/definitions/rel-data
) is missing.The verbose output of swagger-codegen shows it:
The text was updated successfully, but these errors were encountered: