Skip to content
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

Spelling #299

Merged
merged 27 commits into from
Feb 1, 2024
Merged

Spelling #299

merged 27 commits into from
Feb 1, 2024

Conversation

jsoref
Copy link
Contributor

@jsoref jsoref commented Feb 1, 2024

Fixes misspellings identified by the check-spelling action.

The misspellings have been reported at https://github.com/jsoref/JSONata4Java/actions/runs/7736523304#summary-21094019493

The action will report that the changes in this PR would make it happy: https://github.com/jsoref/JSONata4Java/actions/runs/7736523547#summary-21094019850

jsoref added 27 commits January 31, 2024 22:30
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
@@ -770,6 +770,15 @@ <h3> <a id="current-limitations" class="anchor" href="#current-limitations" aria
<li>$parseInteger()</li>
</ul>
<p>We did not implement any of <a href="https://docs.jsonata.org/embedding-extending" rel="nofollow">https://docs.jsonata.org/embedding-extending</a></p>
<p>From: <a href="https://docs.jsonata.org/date-time" rel="nofollow">https://docs.jsonata.org/date-time</a> $fromMillis() only accepts a number, not the format picture, nor timezone $now() does not accept the picture string (e.g., $now(&quot;[Y0000]&quot;) reports an arg1 error</p>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was more or less incomprehensible

Comment on lines -130 to -134
Boolean: unchanged string: empty false string: non-empty true number: 0 false
number: non-zero true null: false array: empty false array: contains a member
that casts to true true array: all members cast to false false object: empty
false object: non-empty true function: (functions are not currently
supported) false</div>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this absolutely was incomprehensible

Comment on lines -206 to -207
The convertJsonNodeToBoolean method converts the node passed in to a boolean
based on the casting semnatics defined by JSONata.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm not quite sure where this should go. Since it sorta fell in the middle of a block i'm consistently replacing... I kicked it below, but i'm not wed to that.

// "\$" followed any character besides '<' and and digit into $ + this character
// "\$" followed any character besides '<' and a digit into $ + this character
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

atypical correction

* Java behaves differently to the Javascript String::split
* Java behaves differently to the JavaScript String::split
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

brand

JsonNode intface = mapper.readTree("{\"a\":2}");
JsonNode intFace = mapper.readTree("{\"a\":2}");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't tell if this was an intentional misspelling of interface. I personally prefer interface_ or iface in that case. I'm assuming that it isn't here...

@wnm3
Copy link
Member

wnm3 commented Feb 1, 2024

@jsoref this was very kind of you to fix all these issues. Thank you. I'll release a new version incorporating these changes today.

@wnm3 wnm3 merged commit e0014ef into IBM:master Feb 1, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants