Forum Discussion

karux's avatar
karux
New Contributor
8 years ago

Resource definitions defined by inheritance not generated by swaggerhub codegen

Bug:    Resource definitions are not generated via swaggerHub codegen.   

 

Input Criteria:

Inherited resources created using the allOf attribute

Endpoints only reference the base resource

NO endpoints reference the inherited resource

 

Acceptance Criteria:

Both base resource and inherited resource definition models are generated  

 

Solution recommendation:

MAYBE create an explicit flag  configuring swaggerHub to generate all resources or all inherited resources where the base type is referenced by an endpoint.

 

 

Workaround:

create a dummy resource containing all inherited resource definitions by composition

create a dummy endpoint referencing the dummy resource

 

 

 

No RepliesBe the first to reply