We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Here you're checking contributors are not empty:
https://github.com/frictionlessdata/datapackage-java/blob/main/src/main/java/io/frictionlessdata/datapackage/Package.java#L775
That doesn't look like a correct way to do that. Contributors is ArrayNode which derived from ContainerNode and asText implemented there as:
ArrayNode
ContainerNode
asText
@Override public String asText() { return ""; }
https://github.com/FasterXML/jackson-databind/blob/2.15/src/main/java/com/fasterxml/jackson/databind/node/ContainerNode.java#L41
I think the right way would be:
!jsonNodeSource.get(Package.JSON_KEY_CONTRIBUTORS).isEmpty()
@iSnow
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
Here you're checking contributors are not empty:
https://github.com/frictionlessdata/datapackage-java/blob/main/src/main/java/io/frictionlessdata/datapackage/Package.java#L775
That doesn't look like a correct way to do that. Contributors is
ArrayNode
which derived fromContainerNode
andasText
implemented there as:https://github.com/FasterXML/jackson-databind/blob/2.15/src/main/java/com/fasterxml/jackson/databind/node/ContainerNode.java#L41
I think the right way would be:
@iSnow
The text was updated successfully, but these errors were encountered: