All Projects → Alterplay → Apvalidators

Alterplay / Apvalidators

Licence: mit
Codeless solution for form validation in iOS!

Projects that are alternatives of or similar to Apvalidators

Cti Stix Validator
OASIS TC Open Repository: Validator for STIX 2.0 JSON normative requirements and best practices
Stars: ✭ 24 (-81.54%)
Mutual labels:  validation, validator
Is
Micro check library in Golang.
Stars: ✭ 61 (-53.08%)
Mutual labels:  validation, validator
Grpc Dotnet Validator
Simple request message validator for grpc.aspnet
Stars: ✭ 25 (-80.77%)
Mutual labels:  validation, validator
Swagger Parser
Swagger 2.0 and OpenAPI 3.0 parser/validator
Stars: ✭ 710 (+446.15%)
Mutual labels:  validation, validator
Schemasafe
A reasonably safe JSON Schema validator with draft-04/06/07/2019-09 support.
Stars: ✭ 67 (-48.46%)
Mutual labels:  validation, validator
Tram Policy
Policy Object Pattern
Stars: ✭ 16 (-87.69%)
Mutual labels:  validation, validator
Govalidator
Validate Golang request data with simple rules. Highly inspired by Laravel's request validation.
Stars: ✭ 969 (+645.38%)
Mutual labels:  validation, validator
Express Validator
An express.js middleware for validator.js.
Stars: ✭ 5,236 (+3927.69%)
Mutual labels:  validation, validator
Laravel Zip Validator
Laravel ZIP file content validator
Stars: ✭ 120 (-7.69%)
Mutual labels:  validation, validator
Vee Validate
✅ Form Validation for Vue.js
Stars: ✭ 8,820 (+6684.62%)
Mutual labels:  validation, validator
Class Validator
Decorator-based property validation for classes.
Stars: ✭ 6,941 (+5239.23%)
Mutual labels:  validation, validator
Ngx Dynamic Form Builder
FormBuilder + class-transformer + class-validator = dynamic form group builder for Angular10+
Stars: ✭ 93 (-28.46%)
Mutual labels:  validation, validator
Validation
The most awesome validation engine ever created for PHP
Stars: ✭ 5,484 (+4118.46%)
Mutual labels:  validation, validator
Validator
A tool to validate text inside TextInputLayout
Stars: ✭ 117 (-10%)
Mutual labels:  validation, validator
Nice Validator
Simple, smart and pleasant validation solution.
Stars: ✭ 587 (+351.54%)
Mutual labels:  validation, validator
Ismailfine
A simple (but correct) library for validating email addresses. Supports mail addresses as defined in rfc5322 as well as the new Internationalized Mail Address standards (rfc653x). Based on https://github.com/jstedfast/EmailValidation
Stars: ✭ 9 (-93.08%)
Mutual labels:  validation, validator
Indicative
Indicative is a simple yet powerful data validator for Node.js and browsers. It makes it so simple to write async validations on nested set of data.
Stars: ✭ 412 (+216.92%)
Mutual labels:  validation, validator
Validator.js
⁉️轻量级的 JavaScript 表单验证,字符串验证。没有依赖,支持 UMD ,~3kb。
Stars: ✭ 486 (+273.85%)
Mutual labels:  validation, validator
Inspector
A tiny class validation library.
Stars: ✭ 64 (-50.77%)
Mutual labels:  validation, validator
Unicorn
Unicorn - W3C's Unified Validator
Stars: ✭ 70 (-46.15%)
Mutual labels:  validation, validator

APValidators

APValidators

Build Status codecov.io Version License Platform

Form validation without any code!

APValidators is a codeless solution for form validation. Just connect everything right in Interface Builder and you're done. Supports really complex and extendable forms by allowing to connect validators in tree.

Features

  • Tree structure for validation rules.
  • No need for any inheritance in UI classes. This means you can use any UITextField or UITextView subclasses and still use APValidators.
  • Easy to integrate to any codebase.
  • Perfect unit tests code coverage.

Usage

  1. Create your form UI in Interface Builder.

  2. In Interface builder add Object Object to your UIViewController for every validator.

    Validators

  3. Assign custom class for every validator.

    • APRegexValidator - validates over regex expression.
    • APRequiredValidator - validates that string is not empty.
    • APZipValidator - ZIP code validation. Must have two-letters country code assigned. Currently supports 151 countries.
    • APEmailValidator - email validation.
    • APEqualValidator - validates that two controls has equal text.
    • APBlockValidator - invokes custom block for validation.
    • APCreditCardValidator - validates credit card number by Luhn alghoritm. Also returns credit card type.
    • APCharactersCountValidator - validates lenght of string by min and max characters count.
    • APCompoundValidator - allows to connect child validators. Will have valid state only if every child validator has valid state. Also returns errorMessages array of all not valid child validators errorMessage properties at the moment.

    Assign subclass

  4. Connect your UI-control validator property to validator Object. APValidators currently support only UITextField and UITextView subclasses.

    Connect validator

  5. Use APCompoundValidator if you need more than one validator for UI-control. Connect it to UI-control and all validators to it's validators property.

    Compound validator

  6. Use one APCompoundValidator as form validator and connect all other validators to it.

    Form validator

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • iOS 8.0 and higher
  • ARC

Installation

APValidators is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'APValidators'

Author

Nickolay Sheika, [email protected]

Contacts

If you have improvements or concerns, feel free to post an issue and write details.

Check out all Alterplay's GitHub projects. Email us with other ideas and projects.

License

APValidators is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].