Giter Club home page Giter Club logo

Comments (2)

sirosen avatar sirosen commented on June 25, 2024 1

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

  1. Also, on a "pride of craftsmanship" note, I take serious issue with treating "true" and true 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.