karlvr / openapi-generator-plus

A code generator for OpenAPI written in node and designed to have pluggable generators

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove the abstract flag from CodegenObjectSchema

karlvr opened this issue · comments

I think we should save CodegenObjectSchema for normal implementations. We benefit from the isObject check in templates meaning it's a normal object that you can construct. If we create a CodegenAbstractObjectSchema and a corresponding schema type, then we can generate our abstract objects that we use when making an implementation for an interface, but we won't accidentally try to use them for a purpose for which they're not intended, such as emitting code that does new X().