Code Monkey home page Code Monkey logo

joi-validate-patch's People

Contributors

evan-king avatar snyk-bot avatar

Stargazers

 avatar

Watchers

 avatar

joi-validate-patch's Issues

TypeError: Uncaught error: Cannot read property 'find' of null

Hi,

This error gets thrown when I have an invalid path that doesn't match the schema. I've wrapped it in a try block in the meantime, but it'd be neat to get this safeguarded.

Debug: internal, implementation, error
    TypeError: Uncaught error: Cannot read property 'find' of null
    at /Users/don.mamaril/Workspace/apps/gsm/goldenstatemaids-hapi/node_modules/joi-validate-patch/lib/joi-validate-patch.js:63:45
    at Array.forEach (native)
    at getValidator (/Users/don.mamaril/Workspace/apps/gsm/goldenstatemaids-hapi/node_modules/joi-validate-patch/lib/joi-validate-patch.js:48:11)
    at validateStep (/Users/don.mamaril/Workspace/apps/gsm/goldenstatemaids-hapi/node_modules/joi-validate-patch/lib/joi-validate-patch.js:85:16)
    at /Users/don.mamaril/Workspace/apps/gsm/goldenstatemaids-hapi/node_modules/joi-validate-patch/lib/joi-validate-patch.js:159:24
    at Array.every (native)
    at Object.exports.validate (/Users/don.mamaril/Workspace/apps/gsm/goldenstatemaids-hapi/node_modules/joi-validate-patch/lib/joi-validate-patch.js:158:11)
    at handler (/Users/don.mamaril/Workspace/apps/gsm/goldenstatemaids-hapi/lib/customer/updateCustomer.js:57:42)
    at Object.exports.execute.internals.prerequisites.internals.handler.callback [as handler] (/Users/don.mamaril/Workspace/apps/gsm/goldenstatemaids-hapi/node_modules/hapi/lib/handler.js:99:36)
    at /Users/don.mamaril/Workspace/apps/gsm/goldenstatemaids-hapi/node_modules/hapi/lib/handler.js:30:23
    at null.internals.Protect.run.finish [as run] (/Users/don.mamaril/Workspace/apps/gsm/goldenstatemaids-hapi/node_modules/hapi/lib/protect.js:59:12)
    at exports.execute.finalize (/Users/don.mamaril/Workspace/apps/gsm/goldenstatemaids-hapi/node_modules/hapi/lib/handler.js:24:22)
    at each (/Users/don.mamaril/Workspace/apps/gsm/goldenstatemaids-hapi/node_modules/hapi/lib/request.js:382:16)
    at iterate (/Users/don.mamaril/Workspace/apps/gsm/goldenstatemaids-hapi/node_modules/hapi/node_modules/items/lib/index.js:36:13)
    at done (/Users/don.mamaril/Workspace/apps/gsm/goldenstatemaids-hapi/node_modules/hapi/node_modules/items/lib/index.js:28:25)
    at request._protect.run (/Users/don.mamaril/Workspace/apps/gsm/goldenstatemaids-hapi/node_modules/hapi/lib/validation.js:68: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.