You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HieronymusLex
changed the title
[BUG][MARKDOWN] Primitive Type not set to true for Models
[BUG][MARKDOWN] Primitive Type not set to true for primitives on Models
Feb 26, 2020
Description
When using both the html and markdown doc generators,
isPrimitiveType
is set to false for model vars even if the var is a primitive type. This leads to dead links for primitive types e.g. https://github.com/OpenAPITools/openapi-generator/blob/master/samples/documentation/markdown/Models/ApiResponse.mdopenapi-generator version
v4.2.3
Command line used for generation
Steps to reproduce
petapidocs/Models/Pet.md
Expected Result
Primitive types such as string, integer etc. should not link to an external file. The relevant part of the mustache template:
{{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}
https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/markdown-documentation/model.mustache#L10Actual Result
Primitive types all have dead links because
isPrimitiveType
is set tofalse
in the templateSuggest a fix
My guess is that there is something wrong with how
isPrimitiveType
is set for model vars but unsure what the fix is yet. I'll keep lookingThe text was updated successfully, but these errors were encountered: