{"id":14955921,"url":"https://github.com/kodius/rswag-json-loader","last_synced_at":"2026-02-02T12:45:59.989Z","repository":{"id":201198389,"uuid":"707205539","full_name":"kodius/rswag-json-loader","owner":"kodius","description":"Use JSON schema files with Rswag","archived":false,"fork":false,"pushed_at":"2023-10-19T22:26:39.000Z","size":23,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-16T06:51:53.863Z","etag":null,"topics":["json","json-schema","rails","rswag","rswag-api"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/rswag_json_loader","language":"Ruby","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/kodius.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-19T12:36:03.000Z","updated_at":"2023-11-02T13:02:08.000Z","dependencies_parsed_at":"2024-06-03T20:04:21.524Z","dependency_job_id":null,"html_url":"https://github.com/kodius/rswag-json-loader","commit_stats":null,"previous_names":["kodius/rswag_json_loader","kodius/rswag-json-loader"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/kodius/rswag-json-loader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodius%2Frswag-json-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodius%2Frswag-json-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodius%2Frswag-json-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodius%2Frswag-json-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kodius","download_url":"https://codeload.github.com/kodius/rswag-json-loader/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodius%2Frswag-json-loader/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260242738,"owners_count":22979634,"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":["json","json-schema","rails","rswag","rswag-api"],"created_at":"2024-09-24T13:12:00.818Z","updated_at":"2026-02-02T12:45:54.967Z","avatar_url":"https://github.com/kodius.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 💎 rswag-json-loader\n\nUse JSON schema files for your Swagger/OpenAPI definitions, instead of storing them in `swagger_helper.rb`\n\n## 🚀 Installation\n\nAdd this line to your `Gemfile`\n\n```ruby\ngem 'rswag_json_loader'\n```\n\nAdd this line to your `swagger_helper.rb`\n\n```ruby\nRswagJsonLoader::SchemaHandler.setup!\n```\n\nBy default, JSON Schema files are expeted to be in:\n```\n./spec/requests/api/schemas/json/*.json\n```\nIf you want them elsewhere, override `schema_path`.\n\n## 👷 Usage\n\nJust create a JSON file in the aforementioned folder, e.g. `sessions_login_payload.json`, enter your JSON Schema inside it\n\n```json\n{\n  \"type\": \"object\",\n  \"required\": [\n    \"email\",\n    \"password\"\n  ],\n  \"properties\": {\n    \"email\": {\n      \"type\": \"string\"\n    },\n    \"password\": {\n      \"type\": \"string\"\n    }\n  }\n}\n```\n\n## 🚧 To-Do\n*   [ ] YAML support\n*   [ ] Tests\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkodius%2Frswag-json-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkodius%2Frswag-json-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkodius%2Frswag-json-loader/lists"}