{"id":19399543,"url":"https://github.com/talentplatforms/dry_open_api","last_synced_at":"2026-06-13T04:31:20.149Z","repository":{"id":83704091,"uuid":"232815290","full_name":"talentplatforms/dry_open_api","owner":"talentplatforms","description":"Dried up PORO OpenAPI for ruby","archived":false,"fork":false,"pushed_at":"2023-03-17T02:22:04.000Z","size":44,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-15T03:07:38.598Z","etag":null,"topics":["dry-rb","gem","openapi3","poro","ruby"],"latest_commit_sha":null,"homepage":null,"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/talentplatforms.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2020-01-09T13:26:50.000Z","updated_at":"2022-05-10T11:13:06.000Z","dependencies_parsed_at":"2023-07-09T06:01:02.303Z","dependency_job_id":null,"html_url":"https://github.com/talentplatforms/dry_open_api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/talentplatforms/dry_open_api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talentplatforms%2Fdry_open_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talentplatforms%2Fdry_open_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talentplatforms%2Fdry_open_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talentplatforms%2Fdry_open_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/talentplatforms","download_url":"https://codeload.github.com/talentplatforms/dry_open_api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talentplatforms%2Fdry_open_api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34272603,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["dry-rb","gem","openapi3","poro","ruby"],"created_at":"2024-11-10T11:09:59.894Z","updated_at":"2026-06-13T04:31:20.143Z","avatar_url":"https://github.com/talentplatforms.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"`dry_open_api`\n\nProviding a [dry](https://dry-rb.org/) version of the [open_api gem](https://github.com/ngtk/open_api).\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'dry_open_api'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install dry_open_api\n\n## Usage\nIt has two use case:\n\n1. Serializing from PORO to yaml\n2. Deserializing yaml to PORO\n\n### Serializing\n\n```rb\nspec = DryOpenApi::Specification.new(\n  openapi: \"3.0.1\",\n  info: DryOpenApi::Info.new(\n    title: \"Awesome API\",\n    description: \"It provides something awesome\",\n    version: \"1.0.0\",\n  ),\n  paths: DryOpenApi::Paths.new(\n    \"/pets\": DryOpenApi::PathItem.new(\n      get: DryOpenApi::Operation.new(\n        description: \"Returns all pets from the system that the user has access to\",\n        responses: DryOpenApi::Responses.new(\n          \"200\": DryOpenApi::Response.new(\n            description: \"A list of pets.\",\n            content: {\n              \"application/json\": DryOpenApi::MediaType.new(\n                schema: DryOpenApi::Schema.new(\n                  type: \"array\",\n                  items: DryOpenApi::Reference.new(ref: \"#/components/schemas/pet\"),\n                )\n              )\n            }\n          )\n        )\n      )\n    )\n  )\n)\n\nyaml = DryOpenApi::Serializers::YamlSerializer.serialize(spec)\nFile.write(\"spec.yml\", yaml)\n```\n\n### Deserializing\n\n```rb\nyaml = File.read(\"spec.yml\")\nspec = DryOpenApi::Serializers::YamlSerializer.deserialize(yaml)\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, run `bundle exec rake bump:patch` to update the version, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/talentplatforms/dry_open_api. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the OpenApi project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/talentplatforms/dry_open_api/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalentplatforms%2Fdry_open_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftalentplatforms%2Fdry_open_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalentplatforms%2Fdry_open_api/lists"}