#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

#220 in Parser implementations

Download history 104/week @ 2024-08-22 311/week @ 2024-08-29 139/week @ 2024-09-05 211/week @ 2024-09-12 141/week @ 2024-09-19 177/week @ 2024-09-26 426/week @ 2024-10-03 480/week @ 2024-10-10 436/week @ 2024-10-17 794/week @ 2024-10-24 681/week @ 2024-10-31 410/week @ 2024-11-07 551/week @ 2024-11-14 661/week @ 2024-11-21 1455/week @ 2024-11-28 1327/week @ 2024-12-05

4,066 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