cancel
Showing results for 
Search instead for 
Did you mean: 

Resource definitions defined by inheritance not generated by swaggerhub codegen

New Contributor

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

 

 

 

New Here?
Join us and watch the welcome video:
Announcements