{"id":15467884,"url":"https://github.com/rangermauve/json-schema-from-path","last_synced_at":"2025-07-26T00:38:06.117Z","repository":{"id":57285181,"uuid":"147714396","full_name":"RangerMauve/json-schema-from-path","owner":"RangerMauve","description":"A utility to get the sub-schema from a JSON-schema from the path in an object","archived":false,"fork":false,"pushed_at":"2024-01-22T06:24:01.000Z","size":9,"stargazers_count":14,"open_issues_count":2,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-29T12:08:24.855Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/RangerMauve.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,"publiccode":null,"codemeta":null}},"created_at":"2018-09-06T18:11:34.000Z","updated_at":"2024-02-23T19:58:08.000Z","dependencies_parsed_at":"2024-06-19T13:27:42.678Z","dependency_job_id":"b66883a6-93e1-4458-8071-3760933cea1e","html_url":"https://github.com/RangerMauve/json-schema-from-path","commit_stats":{"total_commits":11,"total_committers":4,"mean_commits":2.75,"dds":0.6363636363636364,"last_synced_commit":"6f7c0fe1eec728ba277123cae645781fca3af1c3"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RangerMauve%2Fjson-schema-from-path","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RangerMauve%2Fjson-schema-from-path/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RangerMauve%2Fjson-schema-from-path/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RangerMauve%2Fjson-schema-from-path/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RangerMauve","download_url":"https://codeload.github.com/RangerMauve/json-schema-from-path/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252771332,"owners_count":21801699,"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-02T01:29:45.362Z","updated_at":"2025-05-06T21:27:58.046Z","avatar_url":"https://github.com/RangerMauve.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# json-schema-from-path\nA utility to get the sub-schema from a JSON-schema from the path in an object\n\nSupports schemas that use:\n\n- `properties` (type object)\n- `additionalProperties` (type object)\n- `patternProperties` (type object)\n- `items` (type array)\n- paths that use either `/` or `.` as separators\n\n```javascript\nvar getSchemaFromPath = require(\"json-schema-from-path\");\n\nvar someSchema = {\n\tproperties: {\n\t\tfoo: {\n\t\t\tproperties: {\n\t\t\t\tbar: {\n\t\t\t\t\ttype: \"string\"\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n};\n\nvar mypath = \"foo/bar\";\n\nvar theSchema = getSchemaFromPath(someSchema, path);\n\ntheSchema === someSchema.properties.foo.properties.bar\n\n```\n\nIf a schema object doesn't exist for the given path, `null` is returned.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frangermauve%2Fjson-schema-from-path","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frangermauve%2Fjson-schema-from-path","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frangermauve%2Fjson-schema-from-path/lists"}