Git Product home page Git Product logo

Comments (8)

SpyzzVVarun avatar SpyzzVVarun commented on May 30, 2024

Hi @Udayraj123 , should the schema be created exactly for the template file mentioned here: Template File ?

from omrchecker.

Udayraj123 avatar Udayraj123 commented on May 30, 2024

That's correct. The same schema can also be found for all template.json files in samples folder

from omrchecker.

SpyzzVVarun avatar SpyzzVVarun commented on May 30, 2024

Would it be possible to get an example of an incorrect template file, I did write some code for the validation schema and error handling, but I'm not sure about the constraints to be put in my schema. Also, when I tried setting the dimensions in the sample template to 3, I expected an error but the code seemed to run fine. So, it would be helpful to know the expected constraints.

from omrchecker.

Udayraj123 avatar Udayraj123 commented on May 30, 2024

You can create incorrect template.json files by removing some of the mandatory keys, or changing their camelCase to TitleCase for keys(in which case validation error should mention that).
Setting 3rd dimension worked as code can run fine because it is written gracefully. Still we need the validation error to be thrown as a caution for future changes.

from omrchecker.

SpyzzVVarun avatar SpyzzVVarun commented on May 30, 2024

Have generated a draft PR, do let me know if this is what you were expecting.

from omrchecker.

Udayraj123 avatar Udayraj123 commented on May 30, 2024

@SpyzzVVarun discussed on discord. Let me know once all changes done..

from omrchecker.

Udayraj123 avatar Udayraj123 commented on May 30, 2024

Merged #60

from omrchecker.

Udayraj123 avatar Udayraj123 commented on May 30, 2024

extended in #65

from omrchecker.

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.