Comments (3)
Thank you @sirosen ! You are an excellent maintainer. Thank you for responding so quickly. I can confirm on my end that this solves my problem. Thank you!
from check-jsonschema.
Thanks for the report, I'll take a look at this today.
I'm pretty sure that the issue is on this line, that it calls open
without specifying an encoding:
I think I'll change it to use utf-8, since that's what 99.9% of users will expect. That will prevent the use of a locale/default encoding. If someone has an alternate encoding and it causes issues, I can add options to control this or look at chardet and other tools to see what's appropriate.
from check-jsonschema.
I've just released a fix for this in v0.14.3 which changes the above line to open(fn, encoding="utf-8")
.
This should fix the issue, but please let me know if you see any trouble with it!
I also added a new test for this, which I confirmed was failing on GitHub Actions windows builds without the fix.
from check-jsonschema.
Related Issues (20)
- Output of all validated files if verbose: true HOT 4
- Bug with field named 'type' definition in '$defs' HOT 2
- Scipt hanging with json input not complying with schema HOT 2
- Support verbose output in pre-commit hook HOT 2
- Q: equivalent to old CLI syntax? HOT 3
- Warn when using schema features annotated with `"deprecated": true` HOT 3
- Support for `default.json` for `renovate` HOT 6
- Allow validating YAML with inline yaml-language-server comments HOT 2
- Allow optionally interpreting .json files as JSON5 HOT 4
- Failure resolving ref to anchor within same schema after v0.24.0 HOT 5
- Support new GitHub Actions Runner Scale Sets HOT 2
- Opening concurrent file handles for all instancefiles risks breaching OS limit. HOT 6
- Support ECMAScript unicode-mode RegExp usage for 'pattern' and 'patternProperties' HOT 3
- [BUG] `github-workflows-require-timeout.json`: `timeout-minutes` should allow expressions HOT 4
- Feature request: add line numbers to the output HOT 3
- Update vendored bitbucket schema HOT 1
- Feature request: add file names to the ouptut even if validation is OK HOT 3
- "unexpected keyword argument 'registry'" when validating specific GitHub workflow HOT 4
- Bug: Globs work in my machine but fails on CI HOT 3
- AttributeError not parsing schema correctly. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from check-jsonschema.