{"id":15013050,"url":"https://github.com/driv3r/rusty_json_schema","last_synced_at":"2025-04-12T04:21:15.048Z","repository":{"id":43009699,"uuid":"322634555","full_name":"driv3r/rusty_json_schema","owner":"driv3r","description":"Gem wrapping jsonschema-rs in native extension via FFI","archived":false,"fork":false,"pushed_at":"2022-03-23T14:35:40.000Z","size":880,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T23:51:19.647Z","etag":null,"topics":["ffi","json-schema-rs","jsonschema","ruby","rust"],"latest_commit_sha":null,"homepage":"","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/driv3r.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}},"created_at":"2020-12-18T15:36:05.000Z","updated_at":"2023-07-22T11:33:24.000Z","dependencies_parsed_at":"2022-08-21T01:20:23.428Z","dependency_job_id":null,"html_url":"https://github.com/driv3r/rusty_json_schema","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/driv3r%2Frusty_json_schema","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/driv3r%2Frusty_json_schema/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/driv3r%2Frusty_json_schema/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/driv3r%2Frusty_json_schema/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/driv3r","download_url":"https://codeload.github.com/driv3r/rusty_json_schema/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248514412,"owners_count":21116961,"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":["ffi","json-schema-rs","jsonschema","ruby","rust"],"created_at":"2024-09-24T19:43:39.804Z","updated_at":"2025-04-12T04:21:15.024Z","avatar_url":"https://github.com/driv3r.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RustyJSONSchema\n\n[![Gem Version](https://badge.fury.io/rb/rusty_json_schema.svg)](https://badge.fury.io/rb/rusty_json_schema)\n\nFFI wrapper around [`jsonschema`](https://github.com/Stranger6667/jsonschema-rs) Rust library. Props go to original project.\n\nCurrently during heavy development.\n\n## Installation\n\n\u003e **NOTE**: Compilation requires openssl-dev / openssl-devel package\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem \"rusty_json_schema\"\n```\n\nAnd then execute:\n\n```\n$ bundle install\n```\n\nOr install it yourself as:\n\n```\n$ gem install rusty_json_schema\n```\n\n## Usage\n\nInitialize schema validator\n\n```ruby\nvalidator = RustyJSONSchema.build(json_schema)\n```\n\nValidate events like\n\n```ruby\nvalidator.valid?(event_json)\n# =\u003e true/false\n```\n\nTo get validation errors\n\n```ruby\nvalidator.validate(event_json)\n# =\u003e [\"path \\\"...\\\": invalid...\", ...]\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`.\n\nTo release a new version:\n\n- update version number in `version.rb` \u0026 `CHANGELOG.md`\n- create GitHub release with tag being new version prefixed with `v`, i.e. for `VERSION=\"0.1.0\"` it would be `v0.1.0`\n- pull `*.gem` artifact from release build\n- `gem push *.gem` in order to publish it in [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/driv3r/rusty_json_schema. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/driv3r/rusty_json_schema/blob/master/CODE_OF_CONDUCT.md).\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 RustyJSONSchema project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/driv3r/rusty_json_schema/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdriv3r%2Frusty_json_schema","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdriv3r%2Frusty_json_schema","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdriv3r%2Frusty_json_schema/lists"}