Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 24-Mar-2022 | - | ||||
.editorconfig | H A D | 24-Mar-2022 | 539 | 27 | 21 | |
.gitignore | H A D | 24-Mar-2022 | 25 | 3 | 2 | |
.golangci.yml | H A D | 24-Mar-2022 | 636 | 43 | 41 | |
.travis.yml | H A D | 24-Mar-2022 | 1.3 KiB | 32 | 29 | |
CODE_OF_CONDUCT.md | H A D | 24-Mar-2022 | 3.2 KiB | 75 | 56 | |
LICENSE | H A D | 24-Mar-2022 | 11.1 KiB | 203 | 169 | |
README.md | H A D | 24-Mar-2022 | 2.1 KiB | 35 | 25 | |
appveyor.yml | H A D | 24-Mar-2022 | 1.3 KiB | 33 | 24 | |
bindata.go | H A D | 24-Mar-2022 | 24.4 KiB | 298 | 226 | |
cache.go | H A D | 24-Mar-2022 | 2.5 KiB | 99 | 55 | |
contact_info.go | H A D | 24-Mar-2022 | 1.6 KiB | 58 | 31 | |
debug.go | H A D | 24-Mar-2022 | 1.3 KiB | 50 | 24 | |
errors.go | H A D | 24-Mar-2022 | 902 | 20 | 8 | |
expander.go | H A D | 24-Mar-2022 | 16.7 KiB | 595 | 434 | |
external_docs.go | H A D | 24-Mar-2022 | 918 | 25 | 5 | |
header.go | H A D | 24-Mar-2022 | 4.9 KiB | 204 | 139 | |
info.go | H A D | 24-Mar-2022 | 4.3 KiB | 166 | 118 | |
items.go | H A D | 24-Mar-2022 | 5.8 KiB | 235 | 165 | |
license.go | H A D | 24-Mar-2022 | 1.5 KiB | 57 | 30 | |
normalizer.go | H A D | 24-Mar-2022 | 6.2 KiB | 204 | 102 | |
normalizer_nonwindows.go | H A D | 24-Mar-2022 | 1.2 KiB | 44 | 20 | |
normalizer_windows.go | H A D | 24-Mar-2022 | 5.1 KiB | 155 | 69 | |
operation.go | H A D | 24-Mar-2022 | 10.8 KiB | 398 | 291 | |
parameter.go | H A D | 24-Mar-2022 | 10.3 KiB | 327 | 210 | |
path_item.go | H A D | 24-Mar-2022 | 2.6 KiB | 88 | 56 | |
paths.go | H A D | 24-Mar-2022 | 2.6 KiB | 98 | 67 | |
properties.go | H A D | 24-Mar-2022 | 2.4 KiB | 92 | 74 | |
ref.go | H A D | 24-Mar-2022 | 4.2 KiB | 194 | 135 | |
resolver.go | H A D | 24-Mar-2022 | 3.8 KiB | 128 | 81 | |
response.go | H A D | 24-Mar-2022 | 4.2 KiB | 153 | 105 | |
responses.go | H A D | 24-Mar-2022 | 3.6 KiB | 128 | 83 | |
schema.go | H A D | 24-Mar-2022 | 18.2 KiB | 647 | 469 | |
schema_loader.go | H A D | 24-Mar-2022 | 9 KiB | 339 | 227 | |
security_scheme.go | H A D | 24-Mar-2022 | 5.7 KiB | 171 | 120 | |
spec.go | H A D | 24-Mar-2022 | 2.2 KiB | 79 | 44 | |
swagger.go | H A D | 24-Mar-2022 | 11.9 KiB | 449 | 334 | |
tag.go | H A D | 24-Mar-2022 | 2.2 KiB | 76 | 42 | |
validations.go | H A D | 24-Mar-2022 | 7.1 KiB | 216 | 160 | |
xml_object.go | H A D | 24-Mar-2022 | 1.9 KiB | 69 | 36 |
README.md
1# OAI object model 2 3[![Build Status](https://travis-ci.org/go-openapi/spec.svg?branch=master)](https://travis-ci.org/go-openapi/spec) 4<!-- [![Build status](https://ci.appveyor.com/api/projects/status/x377t5o9ennm847o/branch/master?svg=true)](https://ci.appveyor.com/project/casualjim/go-openapi/spec/branch/master) --> 5[![codecov](https://codecov.io/gh/go-openapi/spec/branch/master/graph/badge.svg)](https://codecov.io/gh/go-openapi/spec) 6[![Slack Status](https://slackin.goswagger.io/badge.svg)](https://slackin.goswagger.io) 7[![license](http://img.shields.io/badge/license-Apache%20v2-orange.svg)](https://raw.githubusercontent.com/go-openapi/spec/master/LICENSE) 8[![Go Reference](https://pkg.go.dev/badge/github.com/go-openapi/spec.svg)](https://pkg.go.dev/github.com/go-openapi/spec) 9[![Go Report Card](https://goreportcard.com/badge/github.com/go-openapi/spec)](https://goreportcard.com/report/github.com/go-openapi/spec) 10 11The object model for OpenAPI specification documents. 12 13### FAQ 14 15* What does this do? 16 17> 1. This package knows how to marshal and unmarshal Swagger API specifications into a golang object model 18> 2. It knows how to resolve $ref and expand them to make a single root document 19 20* How does it play with the rest of the go-openapi packages ? 21 22> 1. This package is at the core of the go-openapi suite of packages and [code generator](https://github.com/go-swagger/go-swagger) 23> 2. There is a [spec loading package](https://github.com/go-openapi/loads) to fetch specs as JSON or YAML from local or remote locations 24> 3. There is a [spec validation package](https://github.com/go-openapi/validate) built on top of it 25> 4. There is a [spec analysis package](https://github.com/go-openapi/analysis) built on top of it, to analyze, flatten, fix and merge spec documents 26 27* Does this library support OpenAPI 3? 28 29> No. 30> This package currently only supports OpenAPI 2.0 (aka Swagger 2.0). 31> There is no plan to make it evolve toward supporting OpenAPI 3.x. 32> This [discussion thread](https://github.com/go-openapi/spec/issues/21) relates the full story. 33> 34> An early attempt to support Swagger 3 may be found at: https://github.com/go-openapi/spec3 35