{"id":17163287,"url":"https://github.com/noppefoxwolf/codablemapper","last_synced_at":"2025-06-11T17:02:40.575Z","repository":{"id":56906178,"uuid":"122917911","full_name":"noppefoxwolf/CodableMapper","owner":"noppefoxwolf","description":"Codableが出たのでORMを消し去ろうとして生まれたORMがコレ","archived":false,"fork":false,"pushed_at":"2018-02-26T15:39:40.000Z","size":26,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-09T15:46:54.317Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","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/noppefoxwolf.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":"2018-02-26T05:28:12.000Z","updated_at":"2018-06-28T11:48:42.000Z","dependencies_parsed_at":"2022-08-21T03:50:12.919Z","dependency_job_id":null,"html_url":"https://github.com/noppefoxwolf/CodableMapper","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/noppefoxwolf/CodableMapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noppefoxwolf%2FCodableMapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noppefoxwolf%2FCodableMapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noppefoxwolf%2FCodableMapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noppefoxwolf%2FCodableMapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noppefoxwolf","download_url":"https://codeload.github.com/noppefoxwolf/CodableMapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noppefoxwolf%2FCodableMapper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259301676,"owners_count":22836975,"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-14T22:48:32.483Z","updated_at":"2025-06-11T17:02:40.555Z","avatar_url":"https://github.com/noppefoxwolf.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodableMapper\n\nCodableMapper is a framework written in Swift that makes it easy for you to convert  your decodable model objects (classes and structs) from JSON.\nInspired by ObjectMapper.\n\n## Features\n\n- Mapping JSON to decodable objects\n- Nested Objects\n- Custom transformations during mapping\n- Struct support\n\n## Usage\n\nbasic and transform\n\n```\n{\n    \"id\": 100,\n    \"date\": \"2015/03/04 12:34:56 +09:00\"\n}\n```\n\n```\nstruct Content: Decodable {\n  var id: Int = 0\n  var date: Date?\n  \n  public init(from decoder: Decoder) throws {\n    id \u003c- decoder[\"id\"]\n    date \u003c- (decoder[\"date\"], DateTransform())\n  }\n}\n```\n\n```\nlet content = Content(JSONString: json)!\n```\n\n## Nested value\n\nnested json to flat.\n\n```\n{\n    \"user\": {\n        \"id\": 100\n    }\n}\n```\n\n```\nstruct User: Decodable {\n  var id: Int = 0\n  \n  public init(from decoder: Decoder) throws {\n    id \u003c- decoder[\"user.id\"]\n  }\n}\n```\n\n## Example\n\nlook to tests.\n\n## Requirements\n\nSwift 4.0\n\n## Installation\n\nCodableMapper is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'CodableMapper'\n```\n\ncarthage\n\n```\ngithub 'noppefoxwolf/CodableMapper'\n```\n\n## Author\n\nTomoya Hirano, noppelabs@gmail.com\n\n## License\n\nCodableMapper is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoppefoxwolf%2Fcodablemapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoppefoxwolf%2Fcodablemapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoppefoxwolf%2Fcodablemapper/lists"}