#openapi #swagger #api #oas

oas3

Structures and tools to parse, navigate, and validate OpenAPI v3.1 specifications

15 releases (breaking)

0.12.1 Oct 11, 2024
0.11.0 Oct 7, 2024
0.8.1 Jun 30, 2024
0.4.0 Nov 7, 2023
0.0.1 Aug 9, 2019

#249 in Parser implementations

Download history 161/week @ 2024-07-28 126/week @ 2024-08-04 82/week @ 2024-08-11 217/week @ 2024-08-18 279/week @ 2024-08-25 141/week @ 2024-09-01 147/week @ 2024-09-08 191/week @ 2024-09-15 152/week @ 2024-09-22 165/week @ 2024-09-29 661/week @ 2024-10-06 333/week @ 2024-10-13 601/week @ 2024-10-20 718/week @ 2024-10-27 602/week @ 2024-11-03 369/week @ 2024-11-10

2,297 downloads per month
Used in 7 crates

MIT license

105KB
1.5K SLoC

oas3

crates.io Documentation dependency status MIT or Apache 2.0 licensed
CI codecov Version Download

Structures and tools to parse, navigate and validate OpenAPI v3.1 specifications.

Note that due to v3.1 being a breaking change from v3.0, you may have trouble correctly parsing specs in the older format.

Example

match oas3::from_path("path/to/openapi.yml") {
  Ok(spec) => println!("spec: {:?}", spec),
  Err(err) => println!("error: {}", err)
}

Dependencies

~7–10MB
~179K SLoC