forked from loafle/openapi-generator-original
added more helpful error trace
This commit is contained in:
parent
470ba201d8
commit
fd792ef180
@ -399,7 +399,14 @@ public class DefaultCodegen {
|
||||
LOGGER.warn("null property for " + key);
|
||||
}
|
||||
else {
|
||||
CodegenProperty cp = fromProperty(key, prop);
|
||||
CodegenProperty cp;
|
||||
try{
|
||||
cp = fromProperty(key, prop);
|
||||
}
|
||||
catch(Exception e) {
|
||||
System.out.println("failed to process model " + name);
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
cp.required = false;
|
||||
if(impl.getRequired() != null) {
|
||||
for(String req : impl.getRequired()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user