-
Notifications
You must be signed in to change notification settings - Fork 91
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
Decouple OpenApiAnnotationScanner from Jackson #245
Comments
I think that seems like a pretty reasonable ask. |
Hi @tjquinno - which parser are you looking at? I'm wondering if it might be a better approach to have |
We happen to be using SnakeYAML, but that shouldn't matter. |
As this seems like more of a feature to be used only by a vendor rather than an application, I'm considering adding a method to I think the default implementation also needs to be modified to return plain Java types ( Thoughts? |
Good thinking about the filter - although I wonder how many users are filtering at all, let alone filtering on extensions. :) Still, you're right that a change there could break filtering. |
I'm leaning toward just changing it. The likelihood of a developer specifying extensions via annotations that need to be filtered in the same application seems extremely low :) |
Mike, I am aware of the extensions mechanism and that seems like a reasonable way to expose the behavior we're talking about. We'd just want to be sure that the default implementation you referred to that would use Jackson would not require Jackson to be present at runtime if, in fact, that default implementation were never used. |
@tjquinno - we're on the same page. We'll need to have a unit test or tests for this that ensure Jackson is not on the class path. |
@MikeEdgar Just for planning purposes on my end... Are you thinking of introducing this change in a few days, a few weeks, a few months...? Thanks. |
It should not be more than a few days. The challenge I'm facing now is having multiple executions of the unit tests (one with Jackson and one without) that works with both the Maven command line as well as with the IDE tooling. |
We are layering on SmallRye's OpenAPI implementation as much as we can but want to use a parser other than Jackson.
We do our own parsing of any static file to create an
OpenAPI
instance, rather than usingOpenApiProcessor#modelFromStaticFile
, and we do our own serializing.But
OpenApiAnnotationScanner
depends on Jackson'sObjectMapper
...I think in two places inside#parseExtension
.I don't see an easy way to continue to use
OpenApiAnnotationScanner
as-is without also relying on Jackson.Questions:
OpenApiAnnotationScanner
from Jackson'sObjectMapper
and allow the caller to provide a way to accomplish the equivalent?IgnoreResolver
,JsonUtil
, and a few others - but I'm not sure they are in the code paths we'd continue to rely on.Thanks.
The text was updated successfully, but these errors were encountered: