Skip to content

Schema attributes with inheritance are dropped #483

@swaechter

Description

@swaechter

Steps to Reproduce

1.) Clone the example https://github.com/swaechter/openapiproblems
2.) Switch the version number in gradle.properties to 2.4.0 and run the application
3.) Check out the schema model Owner that has an attribute vehicle of the type Car/Bike
4.) Stop the application and update the version number 2.4.1. Run the application
5.) The schema attribute vehicle is now missing, but the schemas Car/Bike still exist. In addition, the Vehicle schema references Car/Bike via oneOf

Expected Behaviour

The vehicle attribute shows up in the editor & is always referenced:

MN3

MN4

Actual Behaviour

Starting with 2.4.1, the vehicle attribute doesn't show up in the editor & isn't referenced anymore. I am not sure if this is somehow related to @JsonXxX attributes that aren't processed properly (Looking at #471)

MN1

MN2

Environment Information

  • Operating System: Windows 10 x64
  • Micronaut Version: Working in 2.4.0, broken in 2.4.1+
  • JDK Version: AdoptJDK jdk-11.0.10.9-hotspot

Example Application

https://github.com/swaechter/openapiproblems

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions