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
Since release of 7.9.0 allOf objects don´t extend the parent anymore when normalizer REF_AS_PARENT_IN_ALLOF=true and REFACTOR_ALLOF_WITH_PROPERTIES_ONLY=true are used.
I expect the child object extends the parent object which works as expected until 7.9.0. Below generated code from 7.8.0:
publicclassChild1extendsParent {
...
}
below code is generated code from 7.9.0
publicclassChild1 {
...
}
openapi-generator version
7.9.0
OpenAPI declaration file content or url
test.yaml
openapi: 3.0.0info:
title: 'AllOf does not work'description: 'Minimal yaml to showcase allOf does not work anymore'version: infopaths:
/allOf:
get:
operationId: allOfresponses:
"200":
description: okecontent:
application/json:
schema:
$ref: '#/components/schemas/Parent'components:
schemas:
Parent:
type: objectproperties:
p1:
type: integerChild1:
properties:
p2:
type: stringallOf:
- $ref: '#/components/schemas/Parent'
Bug Report Checklist
Description
Since release of 7.9.0 allOf objects don´t extend the parent anymore when normalizer REF_AS_PARENT_IN_ALLOF=true and REFACTOR_ALLOF_WITH_PROPERTIES_ONLY=true are used.
I expect the child object extends the parent object which works as expected until 7.9.0. Below generated code from 7.8.0:
below code is generated code from 7.9.0
openapi-generator version
7.9.0
OpenAPI declaration file content or url
test.yaml
Generation Details
I'm using the openapi-generator-maven-plugin
Steps to reproduce
java -jar openapi-generator-cli.jar generate -g spring -i test.yaml -o output/ --openapi-normalizer REF_AS_PARENT_IN_ALLOF=true,REFACTOR_ALLOF_WITH_PROPERTIES_ONLY=true
The text was updated successfully, but these errors were encountered: