You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Jacek Stępień (JIRA)" <ji...@apache.org> on 2017/01/05 15:09:58 UTC
[jira] [Created] (CAMEL-10675) Swagger is not generating schema ref
for body parameter
Jacek Stępień created CAMEL-10675:
-------------------------------------
Summary: Swagger is not generating schema ref for body parameter
Key: CAMEL-10675
URL: https://issues.apache.org/jira/browse/CAMEL-10675
Project: Camel
Issue Type: Bug
Components: camel-swagger
Affects Versions: 2.18.1
Reporter: Jacek Stępień
{code}
// favor keeping any existing model that has the vendor extension in the model
boolean oldExt = false;
if (swagger.getDefinitions() != null && swagger.getDefinitions().get(entry.getKey()) != null) {
Model oldModel = swagger.getDefinitions().get(entry.getKey());
if (oldModel.getVendorExtensions() != null && !oldModel.getVendorExtensions().isEmpty()) {
oldExt = oldModel.getVendorExtensions().get("x-className") == null;
}
}
if (!oldExt) {
swagger.model(entry.getKey(), entry.getValue());
}
{code}
The logic is invalid. Should not update model when oldModel.getVendorExtensions().get("x-className") != null
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)