Draft
Conversation
…nts, some small error handling fixes
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.




API Changes
Changes from upgrading the access concept, mainly introduction of the
to(Class)method and support for mapping to records and using records as validation schemas.? extends JsonObjectrestriction on allClassarguments for a validation schemaJsonTypedAccessStorewithJsonAccessorsJsonValue#getAccessStorewithJsonValue#getAccessorsJsonGenericTypedAccessorwithJsonAccessorJsonTypedAccessorwithSimpleJsonAccessorJsonTypedAccesstoJsonAccessJsonValue#isAccessCachedJsonValue#withAccessCachedJsonAccessExceptionMETHODas@Targetfor@Validation,@Validatorand@ValidatorRepeat(covered byTYPE_USE)METHODas@Targetfor@RequiredwithTYPEandTYPE_USE(coversMETHOD)Changes from upgrading to use
Textviews instead ofStringto represent path segments.JsonObjectandJsonNodeAPI accepting a member name asStringnow accept aCharSequenceJsonNode#isElementto be defined on arrays and objectsJsonPath#toStringnow throws aJsonPathExceptionwhen the path cannot be represented with syntaxJsonMixed,JsonValueandJsonNodeof(Reader)method (usingTextis a better way now)JsonPath#keyOf(no longer needed)JsonPath#shortenedBy(no longer needed)JsonPath#dropFirstSegment(no longer needed)JsonPath#objectMemberAtStart(no longer needed)JsonPath#arrayIndexAtStart(no longer needed)JsonPath#startsWithObject(no longer needed)JsonPath#startsWithArray(no longer needed)JsonPath#dropLastSegmenttoparentPathJsonPath#extendedWith(Text)JsonNode#memberOrNull(String)JsonNode#member(String)JsonNode#get(Text)JsonNode#getOrNull(Text)JsonNode#member(Text)JsonNode#memberOrNull(Text)JsonNode#isMemberJsonNode#element(Text)JsonNode#elementOrNull(Text)StringwithTextin return type ofJsonNode#getDeclarationStringwithTextin return type ofJsonNode#keysStringwithTextin return type ofJsonNode#membersStringwithTextin return type ofJsonNode#members(boolean)StringwithTextfor JSON string and keys of JSON object entries inJsonNode#valueJsonValue#pathnow returnsJsonPath(wasString)Validation.Error#pathnow is of typeJsonPath(wasString)JsonPathException#pathnow is of typeJsonPath(wasString)GetListenernowaccepts aJsonPath(wasString)JsonPrimitive#mapNonNull(not needed)Bugfixes
JsonNode#getthrowsJsonTreeException(wasJsonPathException) when the operation is used on a non-object nodeJsonNode#getOrNullthrowsJsonTreeException(wasJsonPathException) when the operation is used on a non-object nodeJsonNumber#intValuethrowsJsonPathException(wasNullPointerException) for a node defined JSON null (as stated in javadoc)JsonAbstractObject#hasthrowsJsonTreeExceptionwhen called on an undefined parent