Giter VIP home page Giter VIP logo

jsonvalidation's Introduction

"# JsonValidation"

Starting points:

  • The json schema uses json draft with version: 2020-12 (Notice with $schema key)

  • String can be upper case and then we can ignore case sensitive tests

  • Family can be without kids - New parents :)

  • Person can't be without parents (Except Adam and Eve ;)

  • Parent's list can be also as one parent (Hero parent!)

  • Family digit number has to have a hyphen else the json is invalid

  • If the digit id is has to be five digit length so no need to check below or above that, but only that the number will be different from 5

  • Age can not be negative - can be zero (if we assumption that the number represent the years)

  • No needs to test the family 7 digit number for empty because the test that test the regex of the digit covers that

  • If integer type is empty it became string (For example: "") and error will appear, so no needs to cover it with test. And if I Will not fill the field error will appear.

  • Kid age until 17, and above 18 he is a parent

  • Each person must belong to family. Each family member must exist as a person.

  • The tests are divided "People" section and "Families" section and as some parts:

    • What is happens when field doesn't exist - missing ? (Handle with that by required key in json schema)
    • What is happens when field can't fill a number, letter or character ? (Handle with that by regex expression in json schema)
    • What is happens when field is empty ? (Handle with that by definition of: "nonEmptyString")
    • What if the fields dependent on each other ? (Handle with that by if else then key word)
    • Cause and effect between entities

jsonvalidation's People

Contributors

shaharm7 avatar

Watchers

 avatar

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.