[Ada] Fix #7569 by defining x-is-model-type when property is local to the YML file (#7655)

* Ada generator generates "=>" (correct syntax) instead of "->". Fixes #7450

* Updated the Ada petstore samples

* Committing "VERSION" file and the rest of the petstore samples

* Changed default project name and package name for Ada, not to have circular dependencies between gpr files.

* Ada code generator now adds x-is-model-type every time a model is defined locally in the YML file.

Fix #7569.
This commit is contained in:
micheleISEP 2018-02-22 12:57:15 +00:00 committed by William Cheng
parent b39c35c768
commit edf6be8c07

View File

@ -478,8 +478,8 @@ abstract public class AbstractAdaCodegen extends DefaultCodegen implements Codeg
if (!d.contains(item.datatype)) {
// LOGGER.info("Model " + m.name + " uses " + p.datatype);
d.add(item.datatype);
isModel = true;
}
isModel = true;
}
p.vendorExtensions.put("x-is-model-type", isModel);
}