openapi_merge/input/path.rs
1use super::*;
2
3#[derive(Debug, Deserialize)]
4#[serde(rename_all = "camelCase")]
5pub struct PathModification {
6 /// When copying over the paths from your OpenAPI specification for this input,
7 /// it will strip this string from the start of the path if it is found.
8 pub strip_start: Option<String>,
9 /// When copying over the paths from your OpenAPI specification for this input,
10 /// it will prepend this string to the start of the path if it is found.
11 /// `prepend`` will always run after stripStart so that it is deterministic.
12 pub prepend: Option<String>,
13}