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
Support reading schemas and instances from pipes rather than files #176
Comments
Huh! I wouldn't have expected this to fail. At first I labeled this an enhancement but on second thought it feels to me like a bug.
I don't recall giving this any serious thought. I'll get to that for sure, possibly even before addressing the pipe handling issue. It seems like an easy and innocuous change while this project is still at 0.x . |
I finally got some time yesterday afternoon to look at this and I am in that funny situation of "I fixed it, but my tests don't work". I'm curious, do you know how those |
Thanks for having a look and I sympathize :D I may get a few minutes to look at the branch later -- to answer:
so seems like it's OS dependent maybe... |
I filed python/cpython#99390 because I think this turns out to be a pathlib bug. Now that I've fixed up the filetype detection to not read files unnecessarily, that seems to be sufficient to resolve this once I release it. |
Files created with this mechanism should not be resolved by pathlib.Path.resolve. The results are not a valid path to the file. resolves #176
Files created with this mechanism should not be resolved by pathlib.Path.resolve. The results are not a valid path to the file. resolves #176
Files created with this mechanism should not be resolved by pathlib.Path.resolve. The results are not a valid path to the file. resolves #176
I just published v0.19.1 with the fix, and it works when I test it on your original usage (without
Thanks for letting me know about these issues. Let me know again if anything doesn't work for you. |
Hooray! Thank you, looks great. |
In the old CLI, this works:
where we're sending JSON in without using a temporary file using zsh's process substitution syntax.
But
check-jsonschema
doesn't seem to like that:and requires using "real files" (by changing the above from
<()
to=()
syntax).It also seems like it's worth a thought (if you haven't already) at making
--default-filetype
set to JSON by default so that one can skip passing it in this case, but maybe that's arguable.The text was updated successfully, but these errors were encountered: