Bug Report Checklist
Description
Openapi generator fails to handle $ref to model in requestBodies resulting in UNKOWN_BASE_TYPE.
openapi-generator version
Version: 5.4.0
Might be a regression as this has been mentioned before: #2575
OpenAPI declaration file content or url
openapi: 3.0.0
paths:
/user:
post:
summary: Create New User
operationId: post-user
requestBody:
$ref: '#/components/requestBodies/UserPost'
responses:
'200':
description: OK
components:
requestBodies:
UserPost:
content:
application/json:
schema:
type: object
properties:
firstName:
type: string
lastName:
type: string
Generation Details
Using typescript-fetch
openapi-generator-cli generate -g typescript-fetch -i spec.yaml -o gen
Steps to reproduce
Reproduction
Related issues/PRs
#2575
Bug Report Checklist
Description
Openapi generator fails to handle $ref to model in requestBodies resulting in UNKOWN_BASE_TYPE.
openapi-generator version
Version:
5.4.0Might be a regression as this has been mentioned before: #2575
OpenAPI declaration file content or url
Generation Details
Using
typescript-fetchSteps to reproduce
Reproduction
Related issues/PRs
#2575