From 46b3d880d0c2f5542509cb91b40c722fc7655afb Mon Sep 17 00:00:00 2001 From: Tobe O Date: Thu, 19 Oct 2017 17:59:45 -0400 Subject: [PATCH] pubspec --- lib/src/validators/user.dart | 15 --------------- pubspec.yaml | 1 + 2 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 lib/src/validators/user.dart diff --git a/lib/src/validators/user.dart b/lib/src/validators/user.dart deleted file mode 100644 index 4cb72ae..0000000 --- a/lib/src/validators/user.dart +++ /dev/null @@ -1,15 +0,0 @@ -import 'package:angel_validate/angel_validate.dart'; - -// Validators can be used on the server, in the browser, and even in Flutter. -// -// It is highly recommended that you read the documentation: -// https://github.com/angel-dart/validate -final Validator USER = new Validator({ - 'email': [isString, isNotEmpty, isEmail], - 'username': [isString, isNotEmpty], - 'password': [isString, isNotEmpty] -}); - -final Validator CREATE_USER = USER.extend({}) - ..requiredFields.addAll(['email', 'username', 'password']) - ..forbiddenFields.addAll(['salt', 'roles']); diff --git a/pubspec.yaml b/pubspec.yaml index aebc1f8..de1eb8d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -14,6 +14,7 @@ dependencies: angel_hot: ^1.1.0-alpha # Hot-reloading support. :) angel_jael: ^1.0.0-alpha # Server-side templating engine angel_static: ^1.3.0-alpha # Static file server + angel_validate: ^1.0.0 # Allows for validation of input data dev_dependencies: angel_serialize_generator: ^1.0.0-alpha # Generates serialization code for models. angel_test: ^1.1.0-alpha # Utilities for testing Angel servers.