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
I am currently depending on au.com.dius.pact.core:model to get the types. To be exact, I currently use these (but will likely need others in the future):
I need to generate valid v4 JSON and that is why I need these types.
Problem
The au.com.dius.pact.core:model artifact adds a lot of transitives to the classpath. And that results in problems like ClassNotFoundException, MethodNotFoundException, ... classic classpath issues.
Move the types into its own artifact. Would be nice if it can have zero dependencies, not even Kotlin, but as few as possible would help.
Also the JSON serialization would be nice to have separated. I was a bit surprised that the body is not "content": "{ \"a\": \"b\" }" but it is instead "content": { "a": "b" }, such logic would be nice to have separated.
Workaround
I might just package a fat jar from model and relocate stuff so that it has zero dependencies.
The text was updated successfully, but these errors were encountered:
Use case
I am currently depending on
au.com.dius.pact.core:model
to get the types. To be exact, I currently use these (but will likely need others in the future):I need to generate valid v4 JSON and that is why I need these types.
Problem
The
au.com.dius.pact.core:model
artifact adds a lot of transitives to the classpath. And that results in problems likeClassNotFoundException
,MethodNotFoundException
, ... classic classpath issues.I found the JsonSchema spec but I need Java code and the only code generator I can find does not support anyOf.
Proposed solution
Move the types into its own artifact. Would be nice if it can have zero dependencies, not even Kotlin, but as few as possible would help.
Also the JSON serialization would be nice to have separated. I was a bit surprised that the body is not
"content": "{ \"a\": \"b\" }"
but it is instead"content": { "a": "b" }
, such logic would be nice to have separated.Workaround
I might just package a fat jar from
model
and relocate stuff so that it has zero dependencies.The text was updated successfully, but these errors were encountered: