spmallette opened a new pull request, #3542: URL: https://github.com/apache/tinkerpop/pull/3542
The `asBool()` step trims leading and trailing whitespace (spaces, tabs, newlines, and carriage returns) from string input before comparing it, case-insensitively, against `"true"` and `"false"`. As a result, values such as `" true"`, `"false\t"`, and `"\nTRUE"` are accepted and do not throw. The reference documentation (asBool()-step) and the Gremlin semantics provider documentation both stated that strings were only accepted when exactly equal to `"true"` or `"false"`, which did not reflect this trimming behavior. This updates both sections to describe the trimming and adds a few accepted padded-input examples. Documentation only. The rules for numbers, `null`, and other input types are unchanged. Both books render cleanly. Files: - `docs/src/reference/the-traversal.asciidoc` (asBool()-step section) - `docs/src/dev/provider/gremlin-semantics.asciidoc` (asBool section: Considerations and Exceptions) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
