-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve inheritance support #150
Comments
private open class BaseType {
val baseProperty: String = "Test"
val baseNested: BaseType.NestedClass = NestedClass()
private inner class NestedClass {
val nestedProperty: String = "Test"
}
}
private class FinalClass : BaseType(), Serializable {
val finalProperty: String = "Test"
val finalNested: FinalClass.NestedClass = NestedClass()
private inner class NestedClass {
val nestedProperty: String = "Test"
}
}
@OpenApi(
path = "content-types",
versions = ["should_generate_reference_with_inherited_properties"],
responses = [OpenApiResponse(status = "200", content = [OpenApiContent(from = FinalClass::class, type = ContentType.JSON)])]
) Results in:
And it looks like a valid scheme for the given snippet, expect the fact that we're using simple names for classes, so |
you are right when i remove everything which is not needed for an minimal example it works fine. |
Hmm... Do you have other classes called You can debug annotation processor like regular code if you use Gradle. Just add annotation processor module as implementation, enable debug mode for Gradle scripts in IntelliJ config and it should work just fine. For Maven... well, I'm afraid it's not an option, you'd need to setup remote debugging for whole Maven process & it's extremely slow. We could work around the debug logging enabled by scripting api: |
Thank you for your help, |
Sure, I've covered this issue with small enhancement to debug logging. |
Hi i found an issue linked to #147 and probably to #87
here the example base on the previous one
actual json example:
expected json example:
The text was updated successfully, but these errors were encountered: