[ https://issues.apache.org/jira/browse/GERONIMO-6695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16773234#comment-16773234
]
Romain Manni-Bucau commented on GERONIMO-6695:
----------------------------------------------
It is the enhancement, a general rule is to never expose jpa entities but always dto. We can
make it work ignoring openjpa types but as mentonned openapi does not intend to impl a mapper
as jsonb for instance so maybe just define your schema and reference it on methods?
Will try to check your example more in details in some hours
> OpenAPI - Schemas are not working properly with a few issues
> ------------------------------------------------------------
>
> Key: GERONIMO-6695
> URL: https://issues.apache.org/jira/browse/GERONIMO-6695
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Reporter: Ivan Junckes Filho
> Assignee: Romain Manni-Bucau
> Priority: Major
> Attachments: image-2019-02-19-11-05-49-553.png, image-2019-02-19-11-07-02-967.png,
image-2019-02-19-18-27-41-292.png
>
>
> 1 - Name of classes are not user friendly
> 2 - Internal system properties are showing up in the schema like factory, superclass,
typeParams... etc
> !image-2019-02-19-11-05-49-553.png!
> 3 - A lot of system classes are showing up as schemas and openapi should have only webapp
classes in the document. This even breaks swagger ui because it makes it super slow.
> !image-2019-02-19-11-07-02-967.png!
> The previous images come from swagger-ui.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
|