{"id":20409103,"url":"https://github.com/tcorral/swagger2-to-raml","last_synced_at":"2025-04-12T15:41:31.253Z","repository":{"id":65507668,"uuid":"58756869","full_name":"tcorral/swagger2-to-raml","owner":"tcorral","description":"Convert from Swagger 2.0 YAML to RAML 0.8 RAML","archived":false,"fork":false,"pushed_at":"2016-05-19T07:02:01.000Z","size":10,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T18:02:55.133Z","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/tcorral.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-05-13T16:43:09.000Z","updated_at":"2018-06-12T06:42:49.000Z","dependencies_parsed_at":"2023-01-26T15:45:30.518Z","dependency_job_id":null,"html_url":"https://github.com/tcorral/swagger2-to-raml","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcorral%2Fswagger2-to-raml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcorral%2Fswagger2-to-raml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcorral%2Fswagger2-to-raml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcorral%2Fswagger2-to-raml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tcorral","download_url":"https://codeload.github.com/tcorral/swagger2-to-raml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248143973,"owners_count":21054858,"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-11-15T05:39:35.788Z","updated_at":"2025-04-12T15:41:31.224Z","avatar_url":"https://github.com/tcorral.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# swagger2-to-raml\nThis tool has been created to convert Swagger 2 YAML specs to RAML 0.8.\n\n## Installation\n\n### Node \n\nDependencies:\n\n* node \u003e= 0.10\n* npm \u003e= 2.0.0\n\n```bash\nnpm install swagger2toraml --save\n```\n\n## Usage\n\nS22RAML usage is very simple, it just needs a path or a set of paths of Swagger 2 YAML files and one folder path to save \nthe RAML files.\n\n### Single file\n\n```js\nvar converter = require('swagger2-to-raml');\nS22RAML('./path/to/swagger2/yaml/file.yaml', './raml');\n``` \n\n### Array of files\n\n```js\nvar converter = require('swagger2-to-raml');\nS22RAML([ \n\t\t'./path/to/swagger2/yaml/files/first.yaml', \n\t\t'./path/to/swagger2/yaml/files/second.yaml'\n\t], './raml');\n``` \n\nTo get more information I recommend to read the use cases in tests.\n\n## Tests\n\nTo run the tests with NodeUnit:\n\n```bash\nnpm install\nnpm test\n```\n\n## Contributing\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Check that it still works: `npm test`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n## History\n\n0.1.0 - First release.\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2015 Tomás Corral\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftcorral%2Fswagger2-to-raml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftcorral%2Fswagger2-to-raml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftcorral%2Fswagger2-to-raml/lists"}