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 model references directly to primitives #243
Comments
Also affects swagger-api/swagger-codegen#2314 |
Did you mean the following? swagger: '2.0'
definitions:
User:
$ref: '#/definitions/BaseUser'
BaseUser:
type: string |
This has been implemented |
@fehguy Do you have more details on implementation? Is there a PR which we can refer? |
@fehguy - Can you point us to the PR or test that has fixed this issue? I have pulled this latest version into the swagger-codegen and the problem swagger-api/swagger-codegen#3483 is not resolved. |
Would be interested in details as well. I'm seeing the same issue on master. |
see 5e98486 |
While direct references to primitives are supported, none of the validation specifiers associated with it are carried over. For example:
with the definition:
Using
But not for the
|
A model like this:
Is legal but currently not supported in the parser.
The text was updated successfully, but these errors were encountered: