๐ซ How to reach me:
๐ง [email protected]
Currently learning Electron
angelplusultra / evnt Goto Github PK
View Code? Open in Web Editor NEWa social network for independent event hosting/sharing
a social network for independent event hosting/sharing
๐ซ How to reach me:
๐ง [email protected]
Currently learning Electron
in server/middleware/validation/validators.js
I have a schema im trying to enforce with yup and ensure that the data inside the array are strings, here is the yup schema:
locationTracking: yup
.array()
.of(yup.string())
.required('locationTracking is required')
.typeError('locationTracking must be an array')
.min(1, 'locationTracking must have at least one location'),
});
I also attempted adding the required and typeError methods
locationTracking: yup
.array()
.of(yup.string().require().typeError('data must be strings'))
.required('locationTracking is required')
.typeError('locationTracking must be an array')
.min(1, 'locationTracking must have at least one location'),
});
the schema enforces that locationTracking is an array but does not enforce that it needs to be an array of strings. Arrays of numbers, booleans etc all fly by this validation.
the data being validated is the req.body being sent as json by postman, i thought theres was some sort of type coercion occurring but when I check for the type of data, it returns number, boolean etc, so completely flying by my validation
Yo somethings wrong with this piece of shit app bruh
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.