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
For e.g. the {{#isReadOnly}} mustache property is not accessible if the property is referenced via $ref in the specification file. Seen in pojo.mustache file for language Spring and it's not the only attribute not accessible (e.g. {{#example}}, {{description}} as well).
Swagger-codegen version
3.0.29
Swagger declaration file content or url
Example with not working reference ($ref) on the property grossAmount of the components -> schemas -> LiabilityInsurance:
...
LiabilityInsurance:
type: objectdescription: data necessary for calculating a vehicle liability insurance premiumproperties:
grossAmount:
$ref: '#/components/schemas/GrossAmount'variant:
...GrossAmount:
readOnly: truedescription: Gross total after calculation for the respective subdivision.type: numberformat: doublemultipleOf: 0.01example: 99.98
working example without $ref:
...
LiabilityInsurance:
type: objectdescription: data necessary for calculating a vehicle liability insurance premiumproperties:
grossAmount:
readOnly: truedescription: Bruttosumme nach Berechnung für die jeweilige Teilsparte.type: numberformat: doublemultipleOf: 0.01example: 99.98variant:
...
The text was updated successfully, but these errors were encountered:
JohannesProbst
changed the title
mustache model-properties only accessable if property is not referenced via $ref in specification file
[Spring] mustache model-properties only accessable if property is not referenced via $ref in specification file
Oct 21, 2021
Description
For e.g. the {{#isReadOnly}} mustache property is not accessible if the property is referenced via $ref in the specification file. Seen in pojo.mustache file for language Spring and it's not the only attribute not accessible (e.g. {{#example}}, {{description}} as well).
Swagger-codegen version
3.0.29
Swagger declaration file content or url
Example with not working reference ($ref) on the property grossAmount of the components -> schemas -> LiabilityInsurance:
working example without $ref:
The text was updated successfully, but these errors were encountered: