{"id":15495090,"url":"https://github.com/samchon/typia-mongoose-object-id","last_synced_at":"2025-02-25T21:23:17.054Z","repository":{"id":217286147,"uuid":"743481485","full_name":"samchon/typia-mongoose-object-id","owner":"samchon","description":"Test mongoose.ObjectID type","archived":false,"fork":false,"pushed_at":"2024-01-16T01:08:45.000Z","size":104,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T04:34:20.856Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/samchon.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-01-15T10:31:44.000Z","updated_at":"2024-01-15T10:37:33.000Z","dependencies_parsed_at":"2024-02-03T18:01:48.108Z","dependency_job_id":null,"html_url":"https://github.com/samchon/typia-mongoose-object-id","commit_stats":null,"previous_names":["samchon/typia-mongoose-object-id"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samchon%2Ftypia-mongoose-object-id","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samchon%2Ftypia-mongoose-object-id/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samchon%2Ftypia-mongoose-object-id/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samchon%2Ftypia-mongoose-object-id/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samchon","download_url":"https://codeload.github.com/samchon/typia-mongoose-object-id/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240748349,"owners_count":19851245,"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-02T08:16:04.215Z","updated_at":"2025-02-25T21:23:17.008Z","avatar_url":"https://github.com/samchon.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `mongoose.ObjectId` Type Demonstration\nThere had been repeated reports to `typia` that `typia` creates too long validation code for a `mongoose.ObjectId` type. I think users of `typia` just had expected that `mongoose.ObjectId` is just a `string` like type.\n\nBy the way, looking type definition of the `mongoose.ObjectId`, it is actually extremely complicated. This is a demonstration repo that how `mongoose.ObjectId` is extremely complicataed, so that recommends `typia` users not to validate the `moongoose` ODM schema instance.\n\n```typescript\nimport { ObjectId } from \"mongoose\";\nimport { metadata } from \"typia/lib/reflect\";\nimport fs from \"fs\";\nimport typia from \"typia\";\n\nfs.writeFileSync(\n  __dirname + \"/../ObjectId.json\",\n  JSON.stringify(\n    metadata\u003c[ObjectId]\u003e(),\n    null,\n    2,\n  ),\n  'utf8',\n);\n\ntypia.createIs\u003cObjectId\u003e();\n```\n\n- Metadata Schema: [ObjectId.json](./ObjectId.json)\n- Type Checker: [ObjectId.check.js](./ObjectId.check.js)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamchon%2Ftypia-mongoose-object-id","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamchon%2Ftypia-mongoose-object-id","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamchon%2Ftypia-mongoose-object-id/lists"}