Git Product home page Git Product logo

swiftvalidate's People

Contributors

vstepanyuk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

swiftvalidate's Issues

feature request: example project, ideally using Eureka

@dtop this pod looks really interesting, but I'm finding it a little slow to get going. I'd like to get it working with Eureka. A Eureka example project would be great. Ideally that demonstrates things like:

  • multiple form rows, each with their own validations
  • enabling/disabling a submit button based on whether the form is valid
  • displaying validation errors on the corresponding form rows

In the meantime, I'll keep muddling along.

FYI - there's something about your podspec that makes your pod unable to be "expanded" in the cocoapods search results. Try searching on "valid" for swift projects and you'll see what I mean. Yours is the only one in the list that can't be expanded and viewed inline.

Several issues with ValidatorEmail

  1. splitEmailAddress will crash if the results of splitting the string based on @ only returns 1 part. e.g. If the input is a@ this returns a partial array of length 1, but the returned tuple assumes it is at least 2.
  2. There doesn't appear to be a check that the domain has a tld. An input of a@b is returned as valid.
  3. There doesn't appear to be a check that the tld is at least 2 characters. An input of [email protected] is returned as valid.

Possible error no example code.

Hi,

When trying to use the validatorChain.errors as specified in the README.md file, I get the following error:

Value of type 'ValidatorChain' has no member 'errors'

Did anyone else bump up into this?

How to use ValidatorBetween with a ValidatorChain?

I'm having trouble doing the following:

    let validatorChain = ValidatorChain() {
      $0.stopOnFirstError = true
      $0.stopOnException = true
      } <~~ ValidatorBetween<Int>() {
        $0.minValue = 1
       $0.maxValue = 10
    }

It says that ValidatorBetween<Int> does not conform to ValidationAwareProtocol

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.