Adjust the library to the latest ProtoData #184
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR takes the latest ProtoData and renames
FIELD_NAME
placeholder toFIELD_PATH
.IfInvalid
wrapper has been removed. It was used only to take an error message, but(validate)
doesn't have one anymore.ErrorPlaceholder
andRuntimeErrorPlaceholder
These enums are identical. We use a separate version for
:java
(codegen) module to prevent class clash in runtime of ProtoData. Fat JAR for ProtoData has to have:java-runtime
classes inside because they are part of Spine. Otherwise, the app couldn't start. When the test modules invalidation
try to add the local:java-runtime
, we end up with duplicate classes. Changes in the local:java-runtime
may cause compilation errors because:java
was compiled with the local:java-runtime
, but ProtoData CLI uses an older version of the lib. No simple way to filter them out from a fat jar and replace with dependency on the gradle module.We have considered a separate ProtoData CLI artifact, published specifically for development of
:validation
. But for this PR, we decided just to bypass the error somehow. Further migration from runtime validation incore-java
may drop the necessity to havevalidation-runtime
at all. Implementing a complex solution to a problem, which may disappear soon, is not rational.