You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Variable {{modelJson}} isn't complete for inline responses right now(maybe even for all inline schemas). When I launch any generator with -DdebugModels option the output is:
It's wrong, because produced schema is invalid(type is required property) and I've set type property in original spec file. Spec file provided below.
openapi-generator version
4.3.1-SNAPSHOT
OpenAPI declaration file content or url
openapi: "3.0.0"info:
version: 1.0.0title: Test inline response modeldescription: Test inline response model.license:
name: MITpaths:
/foobar:
get:
summary: No type property in modelJson of InlineResponse200.operationId: testOperationdescription: No type property in modelJson of InlineResponse200responses:
200:
description: InlineResponse200 itself.content:
application/json:
schema:
type: objectproperties:
foo:
type: stringbar:
type: string
Command line used for generation
Any generator with -DdebugModels option.
Steps to reproduce
Run any generator with option above.
Suggest a fix
{{modelJson}} variable of inline response model should contain type property, because it exists in source spec file.
The text was updated successfully, but these errors were encountered:
Bug Report Checklist
Description
Variable
{{modelJson}}
isn't complete for inline responses right now(maybe even for all inline schemas). When I launch any generator with-DdebugModels
option the output is:It's wrong, because
produced schema is invalid(I've settype
is required property) andtype
property in original spec file. Spec file provided below.openapi-generator version
4.3.1-SNAPSHOT
OpenAPI declaration file content or url
Command line used for generation
Any generator with
-DdebugModels
option.Steps to reproduce
Run any generator with option above.
Suggest a fix
{{modelJson}}
variable of inline response model should containtype
property, because it exists in source spec file.The text was updated successfully, but these errors were encountered: