{"id":30367169,"url":"https://github.com/elfsundae/mjextensionvalidation","last_synced_at":"2026-05-14T23:34:49.810Z","repository":{"id":62446811,"uuid":"195021525","full_name":"ElfSundae/MJExtensionValidation","owner":"ElfSundae","description":"Provides an opportunity of validating converted model objects for MJExtension.","archived":false,"fork":false,"pushed_at":"2020-05-23T09:27:32.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-13T14:32:53.657Z","etag":null,"topics":["dictionary","ios","json","mjextension","model","objective-c","validation"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ElfSundae.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-03T09:24:52.000Z","updated_at":"2020-05-23T09:22:15.000Z","dependencies_parsed_at":"2022-11-01T23:01:47.149Z","dependency_job_id":null,"html_url":"https://github.com/ElfSundae/MJExtensionValidation","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ElfSundae/MJExtensionValidation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElfSundae%2FMJExtensionValidation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElfSundae%2FMJExtensionValidation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElfSundae%2FMJExtensionValidation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElfSundae%2FMJExtensionValidation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ElfSundae","download_url":"https://codeload.github.com/ElfSundae/MJExtensionValidation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElfSundae%2FMJExtensionValidation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271236299,"owners_count":24723982,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dictionary","ios","json","mjextension","model","objective-c","validation"],"created_at":"2025-08-19T23:13:50.991Z","updated_at":"2026-05-14T23:34:49.747Z","avatar_url":"https://github.com/ElfSundae.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MJExtensionValidation\n\n[![Build status](https://github.com/ElfSundae/MJExtensionValidation/workflows/Build/badge.svg)](https://github.com/ElfSundae/MJExtensionValidation/actions?query=workflow%3ABuild)\n![CocoaPods](https://img.shields.io/cocoapods/v/MJExtensionValidation)\n![Platforms](https://img.shields.io/cocoapods/p/MJExtensionValidation)\n\nMJExtensionValidation provides an opportunity of validating converted model objects for [MJExtension] (A fast, convenient and nonintrusive conversion framework between JSON and model).\n\n为 [MJExtension] 的 JSON-to-Model 转换增加校验接口。\n\n## Installation\n\n```ruby\npod 'MJExtensionValidation'\n```\n\n## Usage\n\nImplement `+mj_validateConvertedObject:withKeyValues:` method for your model to validate the converted object:\n\n```objc\n#import \u003cMJExtensionValidation/MJExtensionValidation.h\u003e\n\n@implementation User\n\n+ (BOOL)mj_validateConvertedObject:(User *)user withKeyValues:(id)keyValues\n{\n    return user.ID.length \u003e 0;\n}\n\n@end\n```\n\nThen the JSON-to-model converting methods such as `+mj_objectWithKeyValues:` will return `nil` if the converted object could not pass the validation.\n\n## License\n\nMJExtensionValidation is available under the MIT license. See the [LICENSE](LICENSE) file for more info.\n\n[mjextension]: https://github.com/CoderMJLee/MJExtension\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felfsundae%2Fmjextensionvalidation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felfsundae%2Fmjextensionvalidation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felfsundae%2Fmjextensionvalidation/lists"}