-
Notifications
You must be signed in to change notification settings - Fork 762
Schema $ref of $ref not working #160
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
Technically, that's not a valid |
Sorry this is not the concern of the bug here is the updated schema: {
"definitions": {
"Response": {
"$ref": "#/definitions/User"
},
"User": {
"properties": {
"username": {
"type": "string"
}
}
}
} This is not working. I did do a fix for another concern (#162) but this doesn't fix this case since it's not the root problem of this. |
Fair enough, thank you for the contributions! 👍 |
the issue above should be resolved with #162. Please reopen if not. |
This is not related. The problem is in the SwaggerClient.prototype.buildFromSpec and the Model class. In the buildFromSpec arround line 121
A new Model class is instanciate but none of the code in the for and the Model contructor take in consideration that a definition could be a reference on another definition... |
This can be handled by #152 |
This has been resolved. |
This is seem to be a valid schema but it's not loaded properly:
I would expect the Reponse definition to "import" the User definition but it doesn't. This can easily be seen with the getMockSignature of a model since it does get the reference from properties but not from himself.
The text was updated successfully, but these errors were encountered: