Registry / serialization / openapiv3

openapiv3

JSON →
library2.2.0rscratesunverified

This crate provides data structures that represent the OpenAPI v3.0.x specification easily deserializable with serde.

# Cargo.toml [dependencies] openapiv3 = "2.2.0"
INSTALL
IMPORT
SIG · OPENAPIV3
O
openapiv3
serializationrustv2.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

OpenAPI
use openapiv3::OpenAPI;

Deserializes an OpenAPI v3 specification from JSON.

use openapiv3::OpenAPI; fn main() -> Result<(), serde_json::Error> { let spec: OpenAPI = serde_json::from_str(r#"{"openapi":"3.0.0","info":{"title":"Test","version":"1.0"},"paths":{}}"#)?; println!("Title: {}", spec.info.title); Ok(()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
openapiv3 — cargo add openapiv3 · libregistry