Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
This repository is a fork of nexmo/oas_parser that is no longer maintained. So in case you want to contribute do it here.
A Ruby parser for Open API Spec 3.0+ definitions.
Install the gem:
$ gem install oas_parser_reborn
Or add it to your Gemfile:
gem 'oas_parser_reborn'
Here is a basic example of how you can traverse through an Open API Spec 3 Definition:
require 'oas_parser_reborn'
definition = OasParser::Definition.resolve('petstore.yml')
# => #<OasParser::Definition>
# Get a specific path
path = definition.path_by_path('/pets')
# => #<OasParser::Path>
# Get all paths.
definition.paths
# => [#<OasParser::Path>, ...]
# Get a specific endpoint by method
endpoint = path.endpoint_by_method('get')
# => #<OasParser::Endpoint>
# Get all endpoints
path.endpoints
# => [#<OasParser::Endpoint>, ...]
# Get endpoint description
endpoint.description
# => "Returns all pets from the system that the user has access to"
Checkout the tests and lib
directory for more classes and methods.
Run tests:
$ rspec
Clone the repo and navigate to its directory:
$ cd oas_parser_reborn
Bump the latest version in oas_parser_reborn/lib/oas_parser_reborn/version.rb
:
//old
module OasParser
VERSION = '1.0.0'.freeze
end
//new
module OasParser
VERSION = '1.1.0'.freeze
end
Build the gem:
$ gem build oas_parser_reborn.gemspec
This will create a oas_parser_reborn-1.1.0.gem
file.
Push the gem to rubygems.org:
$ gem push oas_parser_reborn-1.1.0.gem
Verify the change was made by checking for the new version on rubygems.org
Contributions are welcome, please follow GitHub Flow
FAQs
Unknown package
We found that oas_parser_reborn demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.