Comments (8)
Interesting. I'll take a look.
from node-azure-media.
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.
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.
I wrote this for a client and haven't maintained it. Do you know of anyone interested in maintaining it?
from node-azure-media.
@fritzy Please contact me about this and VeryModel. I may be interested in taking them over.
from node-azure-media.
@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.
This issue is related to VeryModel, so it'll need to be fixed there. Has it been addressed?
from node-azure-media.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-azure-media.