cyclosproject / ng-openapi-gen

An OpenAPI 3.0 codegen for Angular
MIT License
403 stars 134 forks source link

Incorrect generation from ref to elements other than models #217

Open mihan007 opened 2 years ago

mihan007 commented 2 years ago

When we use ref linked to property of another schema then it couldn't generate correct model

"name": {
  "$ref": "#/components/schemas/ContractSchema/properties/name"
},

it generates

import { Name } from '../models/name';

but no model name as a result

luisfpg commented 2 years ago

It really isn't a supported feature.