Skip to content

Commit c5599d8

Browse files
committed
restore recent changes
1 parent a346e1a commit c5599d8

File tree

4 files changed

+4724
-714
lines changed

4 files changed

+4724
-714
lines changed

compiler-rs/clients_schema_to_openapi/src/paths.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,8 @@ pub fn add_endpoint(
290290
if !code_samples.is_empty() {
291291
extensions.insert("x-codeSamples".to_string(), serde_json::json!(code_samples));
292292
}
293+
let mut ext_availability = crate::availability_as_extensions(&endpoint.availability, flavor);
294+
extensions.append(&mut ext_availability);
293295

294296
// Create the operation, it will be repeated if we have several methods
295297
let operation = openapiv3::Operation {
@@ -314,7 +316,7 @@ pub fn add_endpoint(
314316
deprecated: endpoint.deprecation.is_some(),
315317
security: None,
316318
servers: vec![],
317-
extensions: crate::availability_as_extensions(&endpoint.availability, flavor),
319+
extensions
318320
};
319321

320322

3.93 KB
Binary file not shown.

0 commit comments

Comments
 (0)