forked from loafle/openapi-generator-original
Fixes an issue where code generator for Java produces not compileable (#1357)
code if the yml-definition does not have any type definitions. This is normal if the api only uses simple datatypes (Int, String) for inout/output.
This commit is contained in:
parent
60bc19e830
commit
93e2fc6355
@ -25,7 +25,9 @@ import org.threeten.bp.OffsetDateTime;
|
|||||||
import org.threeten.bp.format.DateTimeFormatter;
|
import org.threeten.bp.format.DateTimeFormatter;
|
||||||
{{/threetenbp}}
|
{{/threetenbp}}
|
||||||
|
|
||||||
|
{{#parent.length}}
|
||||||
import {{modelPackage}}.*;
|
import {{modelPackage}}.*;
|
||||||
|
{{/parent.length}}
|
||||||
import okio.ByteString;
|
import okio.ByteString;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
@ -25,7 +25,9 @@ import org.threeten.bp.OffsetDateTime;
|
|||||||
import org.threeten.bp.format.DateTimeFormatter;
|
import org.threeten.bp.format.DateTimeFormatter;
|
||||||
{{/threetenbp}}
|
{{/threetenbp}}
|
||||||
|
|
||||||
|
{{#parent.length}}
|
||||||
import {{modelPackage}}.*;
|
import {{modelPackage}}.*;
|
||||||
|
{{/parent.length}}
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.StringReader;
|
import java.io.StringReader;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user