Skip to content

Commit

Permalink
working on "Path"
Browse files Browse the repository at this point in the history
  • Loading branch information
RazMag committed Nov 2, 2023
1 parent eb79464 commit 71b5891
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion cherrybomb-oas/src/new_oas/paths.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,32 @@ pub struct Paths {
pub paths: HashMap<String, PathItem>,
#[serde(flatten)]
pub extensions: HashMap<String, Value>,
}
}

#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct PathItem {
pub item_ref: Option<RelReference>,
pub summary: Option<String>,
pub description: Option<String>,
pub get: Option<Operation>,
pub put: Option<Operation>,
pub post: Option<Operation>,
pub delete: Option<Operation>,
pub options: Option<Operation>,
pub head: Option<Operation>,
pub patch: Option<Operation>,
pub trace: Option<Operation>,
pub servers: Option<Vec<crate::new_oas::server::Server>>,
pub parameters: Option<Vec<ParamRef>>,
}

enum ParamRef {
Ref(RelReference),
Param(Parameter),
}

pub struct Operation {

}


0 comments on commit 71b5891

Please sign in to comment.