-
Notifications
You must be signed in to change notification settings - Fork 56
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
wjecli validation -- suboptimal results #86
Comments
WJE's schema support is very outdated (even v4 isn't fully supported, clearly :^) and as much as I'd like to, I can't promise I'll have the time to bring it up to date. Patches welcome, of course! Line numbers might be more tricky; WJReader itself doesn't keep track of lines at all, simply chomping through and ignoring all whitespace completely (as determined by isspace()). WJReader would need a new set of line-aware interfaces (for which the existing functions could become thin wrappers). Above that, it would be easey to add properties in WJElement for line and character from which an element was originally read. ...once again this sounds like fun and I hope I get some time to do it, but in the meantime feel free and encouraged to dive in and take a crack at it yourself! |
I have considered this, and really it shouldn't be hard to add a line counter in the wjreader and increment it if we see a \n...
Maybe I'll try to play with it soon if I find a chance.
Jan 23, 2020 12:08:43 PM Owen Swerkstrom <[email protected]>:
…
WJE's schema support is very outdated (even v4 isn't fully supported, clearly :^) and as much as I'd like to, I can't promise I'll have the time to bring it up to date. Patches welcome, of course!
Line numbers might be more difficult; WJReader itself doesn't keep track of lines at all, simply chomping through and ignoring all whitespace completely (as determined by isspace()). WJReader would need a new set of line-aware interfaces (for which the existing functions could become thin wrappers). Above that, it would be easey to add properties in WJElement for line and character from which an element was originally read.
...once again this sounds like fun and I hope I get some time to do it, but in the meantime feel free and encouraged to dive in and take a crack at it yourself!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub [#86?email_source=notifications&email_token=AADSRCB435RNVCS442PE723Q7HTLTA5CNFSM4KKDJA4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJYPONA#issuecomment-577828660] , or unsubscribe [https://github.com/notifications/unsubscribe-auth/AADSRCEHGAYGIXAKA4QVODDQ7HTLTANCNFSM4KKDJA4A] . [https://github.com/notifications/beacon/AADSRCEWTF67MHLX5BCHDMDQ7HTLTA5CNFSM4KKDJA4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJYPONA.gif]
|
true, it's nothing difficult. just have to make sure it gets exposed back up to wjelement in a sane way, then make a pass through wjeschema's error reporting. |
Thank you for you replies, maybe I'll able to offer some suggestions later. |
Hi, I've just tried schema-validation, the results were suboptimal:
As a start, the schema should be valid against itself, but even if it isn't, the error message should at least contain a line-number...
The text was updated successfully, but these errors were encountered: