#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

#266 in Parser implementations

Download history 42/week @ 2024-07-13 44/week @ 2024-07-20 161/week @ 2024-07-27 121/week @ 2024-08-03 90/week @ 2024-08-10 207/week @ 2024-08-17 251/week @ 2024-08-24 169/week @ 2024-08-31 145/week @ 2024-09-07 199/week @ 2024-09-14 141/week @ 2024-09-21 180/week @ 2024-09-28 596/week @ 2024-10-05 392/week @ 2024-10-12 570/week @ 2024-10-19 737/week @ 2024-10-26

2,314 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

~6.5–9MB
~181K SLoC