├── .editorconfig ├── .gitattributes ├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .npmignore ├── Dockerfile ├── LICENSE ├── README.md ├── bin └── swagger-merger.js ├── example ├── echo │ ├── README.md │ ├── echo.json │ ├── echo.yaml │ ├── example.sh │ ├── host.json │ ├── host.yaml │ ├── id.json │ ├── id.yaml │ ├── index.json │ ├── index.yaml │ ├── index.yml │ ├── name.json │ ├── name.yaml │ ├── responses.json │ ├── responses.yaml │ ├── year.json │ └── year.yaml ├── heroku-pets │ ├── README.md │ ├── example.sh │ ├── heroku-pets.json │ ├── heroku-pets.yaml │ ├── index.json │ ├── index.yaml │ └── index.yml ├── petstore_domain │ ├── README.md │ ├── definitions │ │ ├── error │ │ │ ├── error.json │ │ │ └── error.yaml │ │ ├── index.json │ │ ├── index.yaml │ │ └── pets │ │ │ ├── new-pet.json │ │ │ ├── new-pet.yaml │ │ │ ├── pet.json │ │ │ └── pet.yaml │ ├── example.sh │ ├── index.json │ ├── index.yaml │ ├── index.yml │ ├── paths │ │ ├── index.json │ │ ├── index.yaml │ │ └── pets │ │ │ ├── pets-id.json │ │ │ ├── pets-id.yaml │ │ │ ├── pets.json │ │ │ └── pets.yaml │ ├── petstore_simple.json │ ├── petstore_simple.yaml │ └── petstore_simple.yml └── petstore_simple │ ├── README.md │ ├── definitions │ ├── error.json │ ├── error.yaml │ ├── pets.json │ └── pets.yaml │ ├── example.sh │ ├── index.json │ ├── index.yaml │ ├── index.yml │ ├── paths │ ├── pets │ ├── pets-id │ ├── pets-id.json │ ├── pets-id.yml │ ├── pets.json │ └── pets.yml │ ├── petstore_simple.json │ ├── petstore_simple.yaml │ └── petstore_simple.yml ├── index.js ├── lib ├── merge_json.js ├── merger.js ├── merger_json.js ├── merger_yaml.js ├── reference.js └── remote.js ├── package.json ├── test ├── 404.yaml ├── contact ├── description.yml ├── empty.yaml ├── in.json ├── in.yaml ├── merger.test.js ├── merger_json.test.js ├── merger_yaml.test.js ├── no_ext_json ├── no_ext_yaml ├── out.json ├── out.yaml ├── simple_json ├── simple_yaml └── wrong_ext.xml └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/.npmignore -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/README.md -------------------------------------------------------------------------------- /bin/swagger-merger.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/bin/swagger-merger.js -------------------------------------------------------------------------------- /example/echo/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/echo/README.md -------------------------------------------------------------------------------- /example/echo/echo.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/echo/echo.json -------------------------------------------------------------------------------- /example/echo/echo.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/echo/echo.yaml -------------------------------------------------------------------------------- /example/echo/example.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/echo/example.sh -------------------------------------------------------------------------------- /example/echo/host.json: -------------------------------------------------------------------------------- 1 | { 2 | "host": "mazimi-prod.apigee.net" 3 | } -------------------------------------------------------------------------------- /example/echo/host.yaml: -------------------------------------------------------------------------------- 1 | host: mazimi-prod.apigee.net 2 | -------------------------------------------------------------------------------- /example/echo/id.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/echo/id.json -------------------------------------------------------------------------------- /example/echo/id.yaml: -------------------------------------------------------------------------------- 1 | name: id 2 | in: path 3 | description: ID 4 | type: string 5 | required: true 6 | -------------------------------------------------------------------------------- /example/echo/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/echo/index.json -------------------------------------------------------------------------------- /example/echo/index.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/echo/index.yaml -------------------------------------------------------------------------------- /example/echo/index.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/echo/index.yml -------------------------------------------------------------------------------- /example/echo/name.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/echo/name.json -------------------------------------------------------------------------------- /example/echo/name.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/echo/name.yaml -------------------------------------------------------------------------------- /example/echo/responses.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/echo/responses.json -------------------------------------------------------------------------------- /example/echo/responses.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/echo/responses.yaml -------------------------------------------------------------------------------- /example/echo/year.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/echo/year.json -------------------------------------------------------------------------------- /example/echo/year.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/echo/year.yaml -------------------------------------------------------------------------------- /example/heroku-pets/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/heroku-pets/README.md -------------------------------------------------------------------------------- /example/heroku-pets/example.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/heroku-pets/example.sh -------------------------------------------------------------------------------- /example/heroku-pets/heroku-pets.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/heroku-pets/heroku-pets.json -------------------------------------------------------------------------------- /example/heroku-pets/heroku-pets.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/heroku-pets/heroku-pets.yaml -------------------------------------------------------------------------------- /example/heroku-pets/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/heroku-pets/index.json -------------------------------------------------------------------------------- /example/heroku-pets/index.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/heroku-pets/index.yaml -------------------------------------------------------------------------------- /example/heroku-pets/index.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/heroku-pets/index.yml -------------------------------------------------------------------------------- /example/petstore_domain/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_domain/README.md -------------------------------------------------------------------------------- /example/petstore_domain/definitions/error/error.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_domain/definitions/error/error.json -------------------------------------------------------------------------------- /example/petstore_domain/definitions/error/error.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_domain/definitions/error/error.yaml -------------------------------------------------------------------------------- /example/petstore_domain/definitions/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_domain/definitions/index.json -------------------------------------------------------------------------------- /example/petstore_domain/definitions/index.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_domain/definitions/index.yaml -------------------------------------------------------------------------------- /example/petstore_domain/definitions/pets/new-pet.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_domain/definitions/pets/new-pet.json -------------------------------------------------------------------------------- /example/petstore_domain/definitions/pets/new-pet.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_domain/definitions/pets/new-pet.yaml -------------------------------------------------------------------------------- /example/petstore_domain/definitions/pets/pet.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_domain/definitions/pets/pet.json -------------------------------------------------------------------------------- /example/petstore_domain/definitions/pets/pet.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_domain/definitions/pets/pet.yaml -------------------------------------------------------------------------------- /example/petstore_domain/example.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_domain/example.sh -------------------------------------------------------------------------------- /example/petstore_domain/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_domain/index.json -------------------------------------------------------------------------------- /example/petstore_domain/index.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_domain/index.yaml -------------------------------------------------------------------------------- /example/petstore_domain/index.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_domain/index.yml -------------------------------------------------------------------------------- /example/petstore_domain/paths/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_domain/paths/index.json -------------------------------------------------------------------------------- /example/petstore_domain/paths/index.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_domain/paths/index.yaml -------------------------------------------------------------------------------- /example/petstore_domain/paths/pets/pets-id.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_domain/paths/pets/pets-id.json -------------------------------------------------------------------------------- /example/petstore_domain/paths/pets/pets-id.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_domain/paths/pets/pets-id.yaml -------------------------------------------------------------------------------- /example/petstore_domain/paths/pets/pets.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_domain/paths/pets/pets.json -------------------------------------------------------------------------------- /example/petstore_domain/paths/pets/pets.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_domain/paths/pets/pets.yaml -------------------------------------------------------------------------------- /example/petstore_domain/petstore_simple.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_domain/petstore_simple.json -------------------------------------------------------------------------------- /example/petstore_domain/petstore_simple.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_domain/petstore_simple.yaml -------------------------------------------------------------------------------- /example/petstore_domain/petstore_simple.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_domain/petstore_simple.yml -------------------------------------------------------------------------------- /example/petstore_simple/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_simple/README.md -------------------------------------------------------------------------------- /example/petstore_simple/definitions/error.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_simple/definitions/error.json -------------------------------------------------------------------------------- /example/petstore_simple/definitions/error.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_simple/definitions/error.yaml -------------------------------------------------------------------------------- /example/petstore_simple/definitions/pets.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_simple/definitions/pets.json -------------------------------------------------------------------------------- /example/petstore_simple/definitions/pets.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_simple/definitions/pets.yaml -------------------------------------------------------------------------------- /example/petstore_simple/example.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_simple/example.sh -------------------------------------------------------------------------------- /example/petstore_simple/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_simple/index.json -------------------------------------------------------------------------------- /example/petstore_simple/index.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_simple/index.yaml -------------------------------------------------------------------------------- /example/petstore_simple/index.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_simple/index.yml -------------------------------------------------------------------------------- /example/petstore_simple/paths/pets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_simple/paths/pets -------------------------------------------------------------------------------- /example/petstore_simple/paths/pets-id: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_simple/paths/pets-id -------------------------------------------------------------------------------- /example/petstore_simple/paths/pets-id.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_simple/paths/pets-id.json -------------------------------------------------------------------------------- /example/petstore_simple/paths/pets-id.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_simple/paths/pets-id.yml -------------------------------------------------------------------------------- /example/petstore_simple/paths/pets.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_simple/paths/pets.json -------------------------------------------------------------------------------- /example/petstore_simple/paths/pets.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_simple/paths/pets.yml -------------------------------------------------------------------------------- /example/petstore_simple/petstore_simple.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_simple/petstore_simple.json -------------------------------------------------------------------------------- /example/petstore_simple/petstore_simple.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_simple/petstore_simple.yaml -------------------------------------------------------------------------------- /example/petstore_simple/petstore_simple.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/example/petstore_simple/petstore_simple.yml -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/index.js -------------------------------------------------------------------------------- /lib/merge_json.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/lib/merge_json.js -------------------------------------------------------------------------------- /lib/merger.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/lib/merger.js -------------------------------------------------------------------------------- /lib/merger_json.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/lib/merger_json.js -------------------------------------------------------------------------------- /lib/merger_yaml.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/lib/merger_yaml.js -------------------------------------------------------------------------------- /lib/reference.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/lib/reference.js -------------------------------------------------------------------------------- /lib/remote.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/lib/remote.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/package.json -------------------------------------------------------------------------------- /test/404.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/test/404.yaml -------------------------------------------------------------------------------- /test/contact: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/test/contact -------------------------------------------------------------------------------- /test/description.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/test/description.yml -------------------------------------------------------------------------------- /test/empty.yaml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/in.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/test/in.json -------------------------------------------------------------------------------- /test/in.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/test/in.yaml -------------------------------------------------------------------------------- /test/merger.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/test/merger.test.js -------------------------------------------------------------------------------- /test/merger_json.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/test/merger_json.test.js -------------------------------------------------------------------------------- /test/merger_yaml.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/test/merger_yaml.test.js -------------------------------------------------------------------------------- /test/no_ext_json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/test/no_ext_json -------------------------------------------------------------------------------- /test/no_ext_yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/test/no_ext_yaml -------------------------------------------------------------------------------- /test/out.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/test/out.json -------------------------------------------------------------------------------- /test/out.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/test/out.yaml -------------------------------------------------------------------------------- /test/simple_json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/test/simple_json -------------------------------------------------------------------------------- /test/simple_yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/test/simple_yaml -------------------------------------------------------------------------------- /test/wrong_ext.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/test/wrong_ext.xml -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WindomZ/swagger-merger/HEAD/yarn.lock --------------------------------------------------------------------------------