{"id":21371984,"url":"https://github.com/oori/gulp-jsonschema-deref","last_synced_at":"2026-05-21T07:43:54.762Z","repository":{"id":57258064,"uuid":"60742503","full_name":"oori/gulp-jsonschema-deref","owner":"oori","description":"Gulp plugin to resolve $ref references (local+file+http) and bundle into a single json schema","archived":false,"fork":false,"pushed_at":"2018-05-03T13:32:48.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-08T03:03:40.145Z","etag":null,"topics":["gulp-jsonschema-deref","gulp-plugins","json-schema"],"latest_commit_sha":null,"homepage":"","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/oori.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":"2016-06-09T01:36:35.000Z","updated_at":"2018-05-03T13:32:49.000Z","dependencies_parsed_at":"2022-08-25T21:23:41.639Z","dependency_job_id":null,"html_url":"https://github.com/oori/gulp-jsonschema-deref","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oori%2Fgulp-jsonschema-deref","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oori%2Fgulp-jsonschema-deref/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oori%2Fgulp-jsonschema-deref/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oori%2Fgulp-jsonschema-deref/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oori","download_url":"https://codeload.github.com/oori/gulp-jsonschema-deref/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243680707,"owners_count":20330148,"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":["gulp-jsonschema-deref","gulp-plugins","json-schema"],"created_at":"2024-11-22T08:17:17.741Z","updated_at":"2026-05-21T07:43:54.724Z","avatar_url":"https://github.com/oori.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gulp-jsonschema-deref\n\n[![Build Status](https://travis-ci.org/oori/gulp-jsonschema-deref.svg?branch=master)](https://travis-ci.org/oori/gulp-jsonschema-deref)\n[![Dependencies](https://david-dm.org/oori/gulp-jsonschema-deref.svg)](https://david-dm.org/oori/gulp-jsonschema-deref)\n[![Inline docs](http://inch-ci.org/github/oori/gulp-jsonschema-deref.svg?branch=master)](http://inch-ci.org/github/oori/gulp-jsonschema-deref)\n[![npm](http://img.shields.io/npm/v/gulp-jsonschema-deref.svg)](https://www.npmjs.com/package/gulp-jsonschema-deref)\n[![License](https://img.shields.io/npm/l/gulp-jsonschema-deref.svg)](LICENSE)\n\n\u003e Gulp plugin to resolve $ref references (*local+file+http*) and bundle into a single json schema\n\n## Install\n\n```\n$ npm install --save-dev gulp-jsonschema-deref\n```\n\n\n## Usage\n\n```js\nvar gulp = require('gulp');\nvar jsonschemaDeref = require('gulp-jsonschema-deref');\n\nvar schemaFiles = '*.schema.json',\n\tdefinitionsFiles = 'definitions/' + schemaFiles,\t// (optional)\n\tbuildFolder = 'build';\n\ngulp.task('resolve-schema', function() {\n\tvar stream = gulp.src( schemaFiles )\n\t\t.pipe( jsonschemaDeref() )\n\t\t.pipe( gulp.dest(buildFolder) );\n\treturn stream;\n});\n\n\ngulp.task('watch-schema', function() {\n\tvar watcher = gulp.watch( [schemaFiles,definitionsFiles], ['resolve-schema']);\n\n\twatcher.on('change', function(event) {\n\t  console.log('File ' + event.path + ' was ' + event.type + ', running tasks...');\n\t});\n});\n\ngulp.task('default', ['resolve-schema','watch-schema']);\n```\n\n\n## API\nCurrently, dependant on [json-schema-ref-parser](https://github.com/BigstickCarpet/json-schema-ref-parser)\n\n### jsonschemaDeref([options])\n\n#### options\n\nsee: [dereference](https://github.com/BigstickCarpet/json-schema-ref-parser/blob/master/docs/ref-parser.md#dereferenceschema-options-callback)\n\n## License\n\nMIT © [oori](https://github.com/oori)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foori%2Fgulp-jsonschema-deref","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foori%2Fgulp-jsonschema-deref","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foori%2Fgulp-jsonschema-deref/lists"}