GithubHelp home page GithubHelp logo

Comments (8)

fritzy avatar fritzy commented on August 15, 2024

Interesting. I'll take a look.

from node-azure-media.

NewETown avatar NewETown commented on August 15, 2024

Also running into this issue, code from VeryModel here:

//if we have a VeryValidator to validate against, validate it
                } else if (meta.data.hasOwnProperty(field) && meta.defs[field].hasOwnProperty('validate')) {
                    if (typeof meta.defs[field].validate === 'object' && typeof meta.defs[field].validate.validate === 'function') {
                        merrors = meta.defs[field].validate.validate(meta.data[field]);
                    } else {
                        merrors = meta.defs[field].validate(meta.data[field]);
                    }

There doesn't seem to be a case for "Don't validate this object" when there's a property that appears to signal if there needs to be validation or not, seems like a VeryModel bug.

On second thought, this is looking for a 'validate' property. Can we not add the 'validate' property to boolean parameters? E.g. IsPrimary, IsEncrypted, etc

from node-azure-media.

furqan-razzaq avatar furqan-razzaq commented on August 15, 2024

I am getting the exact same error. And as NewETown mentioned, the code is always assuming that there is a validate method, but in case of IsPrimary or IsEncrypted, there is none. Instead the validate property is a boolean.

from node-azure-media.

fritzy avatar fritzy commented on August 15, 2024

I wrote this for a client and haven't maintained it. Do you know of anyone interested in maintaining it?

from node-azure-media.

codisms avatar codisms commented on August 15, 2024

@fritzy Please contact me about this and VeryModel. I may be interested in taking them over.

from node-azure-media.

fritzy avatar fritzy commented on August 15, 2024

@codisms sounds great! VeryModel, however, is still alive and breathing -- I have a pending major update for it. I'm happy to add you as a contributor though. I'll go ahead and give you contributor access on this right now. Feel free to IM me (xmpp/google talk) [email protected] or email.

from node-azure-media.

codisms avatar codisms commented on August 15, 2024

This issue is related to VeryModel, so it'll need to be fixed there. Has it been addressed?

from node-azure-media.

fritzy avatar fritzy commented on August 15, 2024

Verymodel 3 moved to joi only validators. (Or something that behaves like joi). I'll have to look more closely at those flags.

from node-azure-media.

Related Issues (7)

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.