Git Product home page Git Product logo

peppermint's People

Contributors

alexcristea avatar bradfora avatar dalu93 avatar dependabot[bot] avatar stupergenius avatar valeriyvan avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

peppermint's Issues

Add property error in ValidationResult

Hi,
By applying a small addition to the already existing ValidationResult extension it's possible to retrieve immediately the error without using any switch-case let statements.

extension ValidationResult {
    
    public var error: ValidationError? {
        switch self {
        case .valid:                       return nil
        case let .invalid(error):    return error
        }
    }
}

In this way the usage is much easier

guard result.error == nil else {
    // do something with the error
    return
}

Instead of

if result.isInvalid {
    // to get the actual error you have to switch over the enum.
   // that makes the isInvalid almost useless in this case.
}

Add example projects

Add example projects to document the framework integration and usage inside other projects.

Define a MR template and checklist

Create an MR template that contains a checklist of activities to perform before submitting the MR. This checklist should include like tests passing, every target builds, pod lint is successful, etc.

Add support for DocC

Apple introduced DocC at WWDC21. It is a documentation compiler which allows framework and package authors to write and publish reach and interactive documentation for their clients of their software.

Introduce the concept of modifier

Inspired from SwiftUI,a modifier is a method on a constraint that returns a new constraint by decorating the caller with more functionality.

For example, one may call the .optional() modifier to return an OptionalConstraint.

The purpose is to simplify the API syntax.

async/await support ?

is there any plan to support modern async with this library?
btw good work with the declarative api ! clearly underrated package imho

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.