{"id":16101670,"url":"https://github.com/seesharpsoft/lazy-json-ref","last_synced_at":"2025-08-25T06:06:56.315Z","repository":{"id":41716372,"uuid":"239082287","full_name":"SeeSharpSoft/lazy-json-ref","owner":"SeeSharpSoft","description":"Provides a lazy/late and transparent resolution of references in JSON.","archived":false,"fork":false,"pushed_at":"2023-01-05T06:49:15.000Z","size":507,"stargazers_count":4,"open_issues_count":17,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T13:41:14.851Z","etag":null,"topics":["javascript","json","json-reference","lazy-loading","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SeeSharpSoft.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":"2020-02-08T06:42:18.000Z","updated_at":"2020-09-11T10:45:06.000Z","dependencies_parsed_at":"2023-02-03T16:32:04.120Z","dependency_job_id":null,"html_url":"https://github.com/SeeSharpSoft/lazy-json-ref","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SeeSharpSoft/lazy-json-ref","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeeSharpSoft%2Flazy-json-ref","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeeSharpSoft%2Flazy-json-ref/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeeSharpSoft%2Flazy-json-ref/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeeSharpSoft%2Flazy-json-ref/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SeeSharpSoft","download_url":"https://codeload.github.com/SeeSharpSoft/lazy-json-ref/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeeSharpSoft%2Flazy-json-ref/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272013537,"owners_count":24858474,"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-25T02:00:12.092Z","response_time":1107,"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":["javascript","json","json-reference","lazy-loading","typescript"],"created_at":"2024-10-09T18:50:35.709Z","updated_at":"2025-08-25T06:06:56.261Z","avatar_url":"https://github.com/SeeSharpSoft.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Node.js CI](https://github.com/SeeSharpSoft/lazy-json-ref/workflows/Node.js%20CI/badge.svg)\n\n# lazy-json-ref\n\nProvide resolution of references in JSON (https://tools.ietf.org/id/draft-pbryan-zyp-json-ref-03.html) in a lazy and transparent manner.\n\n**Example:**\n\npets.json\n\n```\n{\n  \"definitions\": {\n    \"pet\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"name\":  { \"type\": \"string\" },\n        \"breed\": { \"type\": \"string\" },\n        \"age\":  { \"type\": \"string\" }\n      },\n      \"required\": [\"name\", \"breed\", \"age\"]\n    }\n  },\n  \"type\": \"object\",\n  \"properties\": {\n    \"cat\": { \"$ref\": \"#/definitions/pet\" },\n    \"dog\": { \"$ref\": \"#/definitions/pet\" }\n  }\n}\n```\n\n```\nlet json = LazyJson.create(\"/test/specs/definitions/pets.json\"); // argument can also be a json object itself\n\njson.properties.cat.required\n\u003e [\"name\", \"breed\", \"age\"]\n\njson.properties.dog.type\n\u003e \"object\"\n\n```\n\n**What's special about it?**\n\nThe reference is resolved lazy on request (**not** in `LazyJson.create`) without any additional function call or de-reference handling. Works also with referencing .json files.\n\nFurther examples can be found [here](https://github.com/SeeSharpSoft/lazy-json-ref/tree/master/test/specs/definitions).\n\n**Disclaimer**\n\nThis is a first draft (or PoC so to say) - feedback welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseesharpsoft%2Flazy-json-ref","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseesharpsoft%2Flazy-json-ref","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseesharpsoft%2Flazy-json-ref/lists"}