Latest 0.1.0
Homepage https://github.com/xuvw/MXAvroLogValidate
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Example

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

Requirements

Installation

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

pod 'MXAvroLogValidate'

Usage

NSArray *schemas = @[@"BaseLog",
                         @"CreateHotelOrder",
                         @"SubmitCarOrder",
                         @"CarOrder",
                         @"EventType",
                         @"SubmitHotelOrder",
                         @"Client",
                         @"HotelOrder",
                         @"UserInfo",
                         @"CreateCarOrder",
                         @"Order"];
    [MXAvroLogValidator configWithRootSchema:@"BaseLog" subSchemas:schemas];
    NSDictionary *dic = jsonObject;
    [dic validateAvroLogWith:^(BOOL validateResult, NSDictionary * _Nonnull invalidatePathDic) {
        if (!validateResult) {
            NSLog(@"校验失败:%@",invalidatePathDic);
        }else {
            NSLog(@"校验成功");
        }
    }];

Author

xuvw, [email protected]

License

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

Latest podspec

{
    "name": "MXAvroLogValidate",
    "version": "0.1.0",
    "summary": "OCu7248Avro logu683cu5f0fu6821u9a8cu5de5u5177",
    "description": "OCu7248Avro logu683cu5f0fu6821u9a8cu5de5u5177uff0cu76eeu524du652fu6301u6240u6709Avrou6570u636eu7c7bu578bjsonu683cu5f0fu6821u9a8c",
    "homepage": "https://github.com/xuvw/MXAvroLogValidate",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "u4f55u53ef": "[email protected]"
    },
    "source": {
        "git": "https://github.com/xuvw/MXAvroLogValidate.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "MXAvroLogValidate/Classes/**/*"
}

Pin It on Pinterest

Share This