Giter VIP home page Giter VIP logo

Comments (3)

AfterThunk avatar AfterThunk commented on July 18, 2024 1

Hello!

I had this same problem too. I actually ended up implementing this and it works through references.

The Ref Resolver will pull down the necessary references, and then inline the function definitions anyway. I basically passed around a list of "scope parts" and used context managers to add and remove parts from the list. That list was then passed to each of the generated validation functions.

I also had a fix where nested "try" statements could be optimized away leaving you with bad indentation. I found this by nesting "if" statements inside "oneOf" statements.

I'd love to submit pull requests for both fixes, but I can't seem to push any branches up (I'm not the most well versed in github).

from python-fastjsonschema.

ZbigniewRA avatar ZbigniewRA commented on July 18, 2024 1

I have created my own pull request for this issue: #92

from python-fastjsonschema.

ZbigniewRA avatar ZbigniewRA commented on July 18, 2024

Hi @machina-widmo I would be very interested in your changes.
To submit a pull request you need to fork this repository, push your changes to your fork, and then create a pull request from your fork to the original repository.
You can see a video tutorial here: https://www.youtube.com/watch?v=OHV64qh-uyY

from python-fastjsonschema.

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.