| 23 | |
| 24 | #[derive(Debug, Serialize, Deserialize)] |
| 25 | pub struct OpenAPI { |
| 26 | pub openapi: String, |
| 27 | pub info: InfoObject, |
| 28 | #[serde(default)] |
| 29 | pub servers: Vec<ServerObject>, |
| 30 | pub paths: HashMap<String, PathItem>, |
| 31 | pub components: Option<ComponentsObject>, |
| 32 | |
| 33 | // === OpenAPI 3.1 fields === |
| 34 | #[serde(rename = "jsonSchemaDialect")] |
| 35 | pub json_schema_dialect: Option<String>, |
| 36 | pub webhooks: Option<HashMap<String, PathItem>>, |
| 37 | |
| 38 | // === OpenAPI 3.2 fields === |
| 39 | #[serde(rename = "$self")] |
| 40 | pub self_ref: Option<String>, |
| 41 | } |
| 42 | |
| 43 | #[derive(Debug, Serialize, Deserialize)] |
| 44 | pub struct PathItem { |
nothing calls this directly
no outgoing calls
no test coverage detected