{"id":17540442,"url":"https://github.com/fromkk/tmvalidator","last_synced_at":"2025-03-29T04:40:50.221Z","repository":{"id":51395044,"uuid":"46397763","full_name":"fromkk/TMValidator","owner":"fromkk","description":null,"archived":false,"fork":false,"pushed_at":"2021-05-12T06:56:49.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T21:47:36.260Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/fromkk.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":"2015-11-18T05:39:12.000Z","updated_at":"2021-05-12T06:56:49.000Z","dependencies_parsed_at":"2022-09-02T03:31:09.390Z","dependency_job_id":null,"html_url":"https://github.com/fromkk/TMValidator","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fromkk%2FTMValidator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fromkk%2FTMValidator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fromkk%2FTMValidator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fromkk%2FTMValidator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fromkk","download_url":"https://codeload.github.com/fromkk/TMValidator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246140537,"owners_count":20729797,"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","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":[],"created_at":"2024-10-20T22:23:54.807Z","updated_at":"2025-03-29T04:40:50.167Z","avatar_url":"https://github.com/fromkk.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TMValidator\n\n## Description\n\niOSでバリデーションをする為のクラスです。\n\n## Usage\n\n```Objective-C\nUITextField *firstName = [[UITextField alloc] init];\nfirstName.text = @\"名\";\n\nUITextField *lastName  = [[UITextField alloc] init];\nlastName.text = @\"姓\";\n\nTMValidatorField *fieldFirstName = [TMValidatorField fieldWithValue:firstName.text andLabel:@\"firstName\" andElement:firstName];\n[[fieldFirstName addRule:[TMValidatorRuleRequired rule]] addRule:[TMValidatorRuleMaxLength ruleWithLength:@10]];\n\nTMValidatorField *fieldLastName  = [TMValidatorField fieldWithValue:lastName.text andLabel:@\"lastName\" andElement:lastName];\n[[fieldLastName addRule:[TMValidatorRuleRequired rule]] addRule:[TMValidatorRuleMaxLength ruleWithLength:@10]];\n\nTMValidator *validator = [TMValidator validator];\n[[validator addField:fieldFirstName] addField:fieldLastName];\n\n[validator runWithSuccesses:^(NSArray *successes) {\n    NSLog(@\"success! %@\", successes);\n} andFailure:^(NSArray *errors) {\n    NSLog(@\"failure! %@\", errors);\n}];\n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffromkk%2Ftmvalidator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffromkk%2Ftmvalidator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffromkk%2Ftmvalidator/lists"}