forked from loafle/openapi-generator-original
excluding default models
This commit is contained in:
parent
9227d7b046
commit
73b15dce53
@ -109,6 +109,7 @@ abstract class BasicGenerator extends CodegenConfig with PathUtil {
|
|||||||
|
|
||||||
val modelBundleList = new ListBuffer[Map[String, AnyRef]]
|
val modelBundleList = new ListBuffer[Map[String, AnyRef]]
|
||||||
for ((name, schema) <- allModels) {
|
for ((name, schema) <- allModels) {
|
||||||
|
if(!defaultIncludes.contains(name)){
|
||||||
val map = new HashMap[String, AnyRef]
|
val map = new HashMap[String, AnyRef]
|
||||||
map += "apis" -> None
|
map += "apis" -> None
|
||||||
map += "models" -> List((name, schema))
|
map += "models" -> List((name, schema))
|
||||||
@ -122,6 +123,7 @@ abstract class BasicGenerator extends CodegenConfig with PathUtil {
|
|||||||
generateAndWrite(map.toMap, file)
|
generateAndWrite(map.toMap, file)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
codegen.writeSupportingClasses(apiMap.toMap, allModels.toMap)
|
codegen.writeSupportingClasses(apiMap.toMap, allModels.toMap)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user