Giter VIP home page Giter VIP logo

Comments (4)

robherring avatar robherring commented on July 20, 2024

You need to update dtschema. jsonschema 4.x.x broke us such as the above. More importantly, newer versions support 'unevaluatedProperties' which we need.

from dt-schema.

montjoie avatar montjoie commented on July 20, 2024

I already use latest dtschema 2021.12

from dt-schema.

robherring avatar robherring commented on July 20, 2024

You aren't because the above issue was fixed in 2021.10 and Draft7Validator is not used in 2021.12. 2021.12 switched to Draft 2019-09 and also requires json-schema 4.x.x.

This is the fix for your issue:
commit ae00cf6
Author: Rob Herring [email protected]
Date: Thu Sep 30 08:39:29 2021 -0500

dtschema: Rework __init__ arg handling for jsonschema 4.0.0

jsonschema 4.0.0 changed how Validator class attrs are initialized which
broke us. Update how we pass keyword args.

Sub-classing a validator is not supported according to the jsonschema
author and subject to breaking (as it just did), so we will need to
rework the interface.

Signed-off-by: Rob Herring <[email protected]>

from dt-schema.

montjoie avatar montjoie commented on July 20, 2024

I am sorry, in fact dt-schema was not well upgraded. Now I am really on 2021.12 and it works. Sorry for the error

from dt-schema.

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.