Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neotoolkit/openapi
OpenAPI 3.x parser
https://github.com/neotoolkit/openapi
Last synced: 4 months ago
JSON representation
OpenAPI 3.x parser
- Host: GitHub
- URL: https://github.com/neotoolkit/openapi
- Owner: neotoolkit
- License: mit
- Archived: true
- Created: 2022-01-23T09:49:54.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-19T22:58:47.000Z (over 1 year ago)
- Last Synced: 2024-07-31T20:52:32.090Z (6 months ago)
- Language: Go
- Homepage:
- Size: 49.8 KB
- Stars: 10
- Watchers: 1
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: security.go
Awesome Lists containing this project
- awesome-go - openapi - OpenAPI 3.x parser. (Miscellaneous / Uncategorized)
- zero-alloc-awesome-go - openapi - OpenAPI 3.x parser. (Miscellaneous / Uncategorized)
- awesome-go-extra - openapi - 01-23T09:49:54Z|2022-06-29T22:38:28Z| (Microsoft Office / Uncategorized)
README
# OpenAPI
[![build-img]][build-url]
[![pkg-img]][pkg-url]
[![reportcard-img]][reportcard-url]
[![coverage-img]][coverage-url]
[![version-img]][version-url]OpenAPI specification object model
## Features
- Easy to integrate.## Installation
```shell
go get github.com/neotoolkit/openapi
```## Usage
```go
package mainimport (
"fmt"
"io/ioutil"
"log""github.com/neotoolkit/openapi"
)func main() {
file, err := ioutil.ReadFile("openapi.yml")
if err != nil {
log.Fatalln(err)
}oapi, err := openapi.Parse(file)
if err != nil {
log.Fatalln(err)
}
fmt.Println(oapi.OpenAPI)
}```
## Documentation
See [these docs][pkg-url].
## License
[MIT License](LICENSE).
[build-img]: https://github.com/neotoolkit/openapi/workflows/build/badge.svg
[build-url]: https://github.com/neotoolkit/openapi/actions
[pkg-img]: https://pkg.go.dev/badge/neotoolkit/openapi
[pkg-url]: https://pkg.go.dev/github.com/neotoolkit/openapi
[reportcard-img]: https://goreportcard.com/badge/neotoolkit/openapi
[reportcard-url]: https://goreportcard.com/report/neotoolkit/openapi
[coverage-img]: https://codecov.io/gh/neotoolkit/openapi/branch/main/graph/badge.svg
[coverage-url]: https://codecov.io/gh/neotoolkit/openapi
[version-img]: https://img.shields.io/github/v/release/neotoolkit/openapi
[version-url]: https://github.com/neotoolkit/openapi/releases## Sponsors