ng-openapi-gen icon indicating copy to clipboard operation
ng-openapi-gen copied to clipboard

Incorrect generation from ref to elements other than models

Open mihan007 opened this issue 3 years ago • 1 comments

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

mihan007 avatar Apr 05 '22 10:04 mihan007

It really isn't a supported feature.

luisfpg avatar Apr 05 '22 10:04 luisfpg