Comments (2)
The Azure Pipelines schema is provided by Microsoft and has numerous issues and inaccuracies.
I believe that their schema allows for "true"
and "false"
(the strings) in a number of cases in which "true", "false", true, false
should all be allowed. I recommend trying "true"
to see if Azure Pipelines and the schema are both happy with that.
I've tried to file upstream issues and even offered to help fix up their schema, and they either haven't understood me or haven't been interested in improving it. Their LSP tools simply patch over these cases by muddling the data before it goes through validation -- I can't remember the exact details, but it's nontrivial to replicate with the check-jsonschema
technology stack.1
I don't think that there's an obvious improvement here, unfortunately. It's a pretty disappointing but the underlying schema is where the problem lies.
It's possible that there's some kind of hack which can be applied (like the MSFT LSP tools do), but I haven't figured that out.
Footnotes
-
Also, on a "pride of craftsmanship" note, I take serious issue with treating
"true"
andtrue
as equivalent -- they're different values and it's a bad idea to pretend otherwise. It's impossible to scope that change down to the correct scope (what does "correct" even mean in this case?), and it's just as likely to cause harm somewhere else as it is to help here. ↩
from check-jsonschema.
Related Issues (20)
- 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
- Cannot validate date-time via the CLI tool HOT 4
- Distribute the check-jsonschema tool in a manner which does not assume a Python environment
- Validation passes for misspelled optional child properties in Google Cloud Build schema HOT 7
- check-gitlab-ci: coverage is not a regex HOT 9
- Check yaml with check-metaschema option HOT 3
- Non-JSON files ignored despite --default-type being set HOT 4
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.