tavis-software / Tavis.OpenApi

Parser for OpenAPI Specification
Apache License 2.0
17 stars 3 forks source link
openapi openapi3

Tavis.OpenAPI

Note: This library has been superceded by Microsoft.OpenAPI.NET. I don't expect any further development on this project.

This library is a parser for the OpenAPI Specification. The model is based around OpenAPI 3.0 specification.

Simple Example

            var parsingContext = OpenApiParser.Parse(@"
                    openapi: 3.0.0
                    info:
                        title: A simple inline example
                        version: 1.0.0
                    paths:
                      /api/home:
                        get:
                          responses:
                            200:
                              description: A home document
                    ");

            Assert.Equal("3.0.0", parsingContext.OpenApiDoc.Version);
            Assert.Equal(0, parsingContext.ParsingErrors.Count());

Goals