We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee8bb29 commit 2668b6fCopy full SHA for 2668b6f
compiler-rs/clients_schema_to_openapi/src/paths.rs
@@ -369,6 +369,12 @@ pub fn add_endpoint(
369
}
370
371
372
+ if let Some(alternative_java) = example.alternative_java.clone() {
373
+ code_samples.push(serde_json::json!({
374
+ "lang": "java",
375
+ "source": alternative_java.code.as_str(),
376
+ }));
377
+ }
378
379
if !code_samples.is_empty() {
380
extensions.insert("x-codeSamples".to_string(), serde_json::json!(code_samples));
0 commit comments