Support model references directly to primitives
See original GitHub issueA model like this:
swagger: '2.0'
definitions:
User:
$ref: 'BaseUser'
BaseUser:
type: string
Is legal but currently not supported in the parser.
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Primitive and reference variables - Java Programming - Mooc.fi
From the programmer's perspective, a primitive variable's information is stored as the value of that variable, whereas a reference variable holds a reference...
Read more >Part library primitives reference | Netfabb 2020
Part library primitives reference ; Resolution, Defines the resolution of the part's surface. The higher the number, the finer the surfaces are ...
Read more >State of Valhalla
Reference and primitive types differ in almost every conceivable way. Reference types have members (methods and fields) and supertypes (superclasses and ...
Read more >Primitives - SideFX
In Houdini, primitives refer to a unit of geometry, lower-level than an object but above points. Houdini supports several different types of primitives:....
Read more >Object references and copying - The Modern JavaScript Tutorial
One of the fundamental differences of objects versus primitives is that objects are stored and copied “by reference”, whereas primitive ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

While direct references to primitives are supported, none of the validation specifiers associated with it are carried over.
For example:
with the definition:
Using
swagger-codegenversion 2.3.1 for spring-boot generates the right validation annotations and javadoc for email:But not for the
mobileproperty:@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 https://github.com/swagger-api/swagger-codegen/issues/3483 is not resolved.