Skip to content

Commit 5d22253

Browse files
committed
Format stable availability
1 parent 7ff2e89 commit 5d22253

File tree

4 files changed

+701
-701
lines changed

4 files changed

+701
-701
lines changed

compiler-rs/clients_schema_to_openapi/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,10 @@ pub fn availability_as_extensions(availabilities: &Option<Availabilities>) -> In
165165
}
166166
Stability::Stable => {
167167
if let Some(since) = &availability.since {
168-
result.insert("x-state".to_string(), serde_json::Value::String(since.clone()));
168+
let stable_since = "Added in ".to_string() + since;
169+
result.insert("x-state".to_string(), serde_json::Value::String(stable_since));
169170
}
170171
}
171-
_ => {}
172172
}
173173
}
174174
}
355 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)