Open Udayraj123 opened 1 year ago
We can close the previous issue and update this one.
In #43 we added a json schema, which is basically a blueprint for the input template.json file, that validates the template file and we wrote a function that validates the template using python jsonschema library. Both the schema and the error messages need a lot of improvement and that is where this issue comes in.
Talking about improvements in the validation schema, we have to write the constraints in much more detail. By constraint I mean for eg: the dimensions key should only take in an array of 2 integers, so if the number of integers don't match, it should give a proper error message. So, detailed constraints have to be included in the schema.
Regarding the error messages, currently we only print the key where the error takes place (key comes from schema and not the input template which is a problem) and we print a default error message which is not sufficient currently. So we need to improve the error messages, add a warning/error info/level and also find a way to get the key with the error from the input template.json instead of the schema (for cases of spelling mistake or case mistake in the keys).
Well detailed breakdown 👍 you(and others) can raise PRs in small mergeable/deliverable chunks as we discussed yesterday.
Reiterating that discussion here as well for reference -
I'll share a concept I shared with one of you recently.
This comes from Agile development practiced in the industry.
Each small ball is a small change that is eligible for merge.
Break the task down into as many parts as possible, as long as one meaningful PR for each of the parts exists. This helps in teams and communities to work independently and efficiently
@SpyzzVVarun adding few more criteria
This issue needs a bit more attention now. Bumping updated time with this comment.
@SpyzzVVarun are you available to work on this now?
Marking issue as easy since a few improvements have been merged in the evaluation + revamp PR https://github.com/Udayraj123/OMRChecker/pull/118
Sir i would like to contribute to this project. Please tell me how, I'm pretty new to Open Source.
@anaghninja432 Hello, if you're new to the project I suggest you to run the project locally on a new OMR sheet and submit a sample. Then in the process try to go through the code flow for your images. This task is around schema validation so you can experiment passing incorrect template jsons by thinking of common mistakes people can do. We need to provide accurate error messages to guide the user
This extends https://github.com/Udayraj123/OMRChecker/issues/43
Originally posted by @Udayraj123 in https://github.com/Udayraj123/OMRChecker/issues/60#issuecomment-1267295262