Blog
Services
Docs
Donate
Status
English
Bahasa Indonesia
Deutsch
English
Español
Esperanto
Filipino
Français
Italiano
Latviešu
Magyar nyelv
Nederlands
Plattdüütsch
Polski
Português de Portugal
Português do Brasil
Slovenščina
Suomi
Svenska
Türkçe
Čeština
Ελληνικά
Български
Русский
Українська
فارسی
日本語
简体中文
繁體中文(台灣)
繁體中文(香港)
한국어
Ark
Search
Create
Migrate
Explore
Login
Blog
Docs
Status
Explore
Login
Ark
Infrastructure
/
ghost
Watch
0
Fork
You've already forked ghost
0
mirror of
https://github.com/TryGhost/Ghost.git
synced
2025-02-10 23:36:14 -05:00
Code
Issues
Activity
495ef867c2
ghost
/
core
/
server
/
data
/
validation
/
index.js
5 lines
97 B
JavaScript
Raw
Normal View
History
Unescape
Escape
Add validation from schema.js closes #1401 - added data/validation/index.js - added generic validation for length - added generic validation for nullable - added validations object to schema.js for custom validation - removed pyramid of doom from api/db.js
2014-02-19 18:32:23 +01:00
module
.
exports
=
{
Split validation index into separate files - The data/validation module is made up of several loosely related things with lots of dependencies - Separating out the various components makes it possible to see what's what, and importantly what has complex dependencies - validator + validate probably go togetheri in an external module, the other two files should probably have their own homes in related areas of ghost e.g. schema -> data/schema/validate.js
2021-06-14 17:53:24 +01:00
validate
:
require
(
'./validate'
)
,
Moved password validation into a library - This is super specific code relating only to validating passwords. - It's needed as a shared validator as we use other funnels to help people setup Ghost on Pro, but currently it's hard-baked into Ghost - It's also not the greatest code. It'd be nice to be able to rework it and know that would automatically update everywhere passwords are set
2021-06-15 12:33:14 +01:00
validator
:
require
(
'./validator'
)
Replace JSLint with JSHint. closes #2277 - Added ES6 linting to core/client/ - Fix typeof array comparison
2014-02-27 02:44:09 +00:00
}
;
Reference in a new issue
Copy permalink