Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/softprops/openapi
openapi schema serialization for rust
https://github.com/softprops/openapi
openapi rust-library
Last synced: 7 days ago
JSON representation
openapi schema serialization for rust
- Host: GitHub
- URL: https://github.com/softprops/openapi
- Owner: softprops
- License: mit
- Created: 2017-01-16T19:57:46.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-10T12:35:58.000Z (about 2 years ago)
- Last Synced: 2024-05-09T09:40:52.330Z (8 months ago)
- Topics: openapi, rust-library
- Language: Rust
- Size: 1.1 MB
- Stars: 124
- Watchers: 6
- Forks: 61
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-rust - softprops/openapi
- awesome-rust-cn - softprops/openapi
README
# open api [![Build Status](https://travis-ci.org/softprops/openapi.svg?branch=master)](https://travis-ci.org/softprops/openapi) [![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE) [![crates.io](http://meritbadge.herokuapp.com/openapi)](https://crates.io/crates/openapi)
> Rust crate for serializing and deserializing [open api](http://swagger.io/specification/) documents
[Documentation](https://softprops.github.io/openapi)
## install
add the following to your `Cargo.toml` file
```toml
[dependencies]
openapi = "0.1"
```## usage
```rust
extern crate openapi;fn main() {
match openapi::from_path("path/to/openapi.yaml") {
Ok(spec) => println!("spec: {:?}", spec),
Err(err) => println!("error: {}", err)
}
}
```Doug Tangren (softprops) 2017