All Projects → Nexmo → oas_parser

Nexmo / oas_parser

Licence: MIT license
An open source Open API Spec 3 Definition Parser

Programming Languages

ruby
36898 projects - #4 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to oas parser

nexmo-oas-renderer
Render your API references, Nexmo-style!
Stars: ✭ 40 (-23.08%)
Mutual labels:  nexmo, openapi3, oas3, developer-destination
Spectral
A flexible JSON/YAML linter for creating automated style guides, with baked in support for OpenAPI v2 & v3.
Stars: ✭ 876 (+1584.62%)
Mutual labels:  openapi-specification, openapi3
Apispec
A pluggable API specification generator. Currently supports the OpenAPI Specification (f.k.a. the Swagger specification)..
Stars: ✭ 831 (+1498.08%)
Mutual labels:  openapi-specification, openapi3
Validator Badge
Validate your Swagger JSON/YAML today!
Stars: ✭ 158 (+203.85%)
Mutual labels:  openapi-specification, openapi3
Springdoc Openapi
Library for OpenAPI 3 with spring-boot
Stars: ✭ 1,113 (+2040.38%)
Mutual labels:  openapi-specification, openapi3
Swagger Parser
Swagger Spec to Java POJOs
Stars: ✭ 468 (+800%)
Mutual labels:  openapi-specification, openapi3
Swagger Editor
Swagger Editor
Stars: ✭ 7,365 (+14063.46%)
Mutual labels:  openapi-specification, openapi3
nexmo-go
This SDK has moved! It is now located at https://github.com/vonage/vonage-go-sdk. New features will be released in the vonage org, so to take advantage of those please make sure to switch to vonage-go-sdk as soon as possible so you don't miss out!
Stars: ✭ 0 (-100%)
Mutual labels:  nexmo, vonage
Swagger Inflector
Stars: ✭ 131 (+151.92%)
Mutual labels:  openapi-specification, openapi3
Swagger Codegen
swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
Stars: ✭ 13,859 (+26551.92%)
Mutual labels:  openapi-specification, openapi3
Openapivalidators
Use Jest or Chai to assert that HTTP responses satisfy an OpenAPI spec
Stars: ✭ 77 (+48.08%)
Mutual labels:  openapi-specification, openapi3
Swurg
Parse OpenAPI documents into Burp Suite for automating OpenAPI-based APIs security assessments (approved by PortSwigger for inclusion in their official BApp Store).
Stars: ✭ 94 (+80.77%)
Mutual labels:  openapi-specification, openapi3
Swagger Js
Javascript library to connect to swagger-enabled APIs via browser or nodejs
Stars: ✭ 2,319 (+4359.62%)
Mutual labels:  openapi-specification, openapi3
Oas Kit
Convert Swagger 2.0 definitions to OpenAPI 3.0 and resolve/validate/lint
Stars: ✭ 516 (+892.31%)
Mutual labels:  openapi-specification, openapi3
Swagger Ui
Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
Stars: ✭ 21,279 (+40821.15%)
Mutual labels:  openapi-specification, openapi3
Drf Spectacular
Sane and flexible OpenAPI 3 schema generation for Django REST framework.
Stars: ✭ 414 (+696.15%)
Mutual labels:  openapi-specification, openapi3
Redoc
📘 OpenAPI/Swagger-generated API Reference Documentation
Stars: ✭ 15,935 (+30544.23%)
Mutual labels:  openapi-specification, openapi3
Openapi.tools
A collection of Editors, Linters, Parsers, Code Generators, Documentation, Testing
Stars: ✭ 257 (+394.23%)
Mutual labels:  openapi-specification, openapi3
Swagger Core
Examples and server integrations for generating the Swagger API Specification, which enables easy access to your REST API
Stars: ✭ 6,898 (+13165.38%)
Mutual labels:  openapi-specification, openapi3
comms-router
A server which allows you to route tasks to agents.
Stars: ✭ 18 (-65.38%)
Mutual labels:  nexmo, developer-destination

Open API Definition Parser

Nexmo is now known as Vonage

A Ruby parser for Open API Spec 3.0+ definitions.

Install

Install the gem:

$ gem install oas_parser

Or add it to your Gemfile:

gem 'oas_parser'

Usage

Here is a basic example of how you can traverse through an Open API Spec 3 Definition:

require 'oas_parser'

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.

Development

Run tests:

$ rspec

Publishing

Clone the repo and navigate to its directory:

$ cd oas-parser

Bump the latest version in oas_parser/lib/oas_parser/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.gemspec

This will create a oas_parser-1.1.0.gem file.

Push the gem to rubygems.org:

$ gem push oas_parser-1.1.0.gem

Verify the change was made by checking for the new version on rubygems.org

Contributing

Contributions are welcome, please follow GitHub Flow

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].