Skip to content

Commit

Permalink
fix components spelling (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
prabirshrestha authored Jul 13, 2023
1 parent deb4175 commit b4649e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/oapi/src/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ impl Endpoint {

/// A trait for endpoint argument register.
pub trait EndpointArgRegister {
/// Modify the OpenApi compontents section or current operation information with given argument. This function is called by macros internal.
fn register(compontents: &mut Components, operation: &mut Operation, arg: &str);
/// Modify the OpenApi components section or current operation information with given argument. This function is called by macros internal.
fn register(components: &mut Components, operation: &mut Operation, arg: &str);
}
/// A trait for endpoint return type register.
pub trait EndpointOutRegister {
/// Modify the OpenApi compontents section or current operation information with given argument. This function is called by macros internal.
fn register(compontents: &mut Components, operation: &mut Operation);
/// Modify the OpenApi components section or current operation information with given argument. This function is called by macros internal.
fn register(components: &mut Components, operation: &mut Operation);
}

impl<C> EndpointOutRegister for writing::Json<C>
Expand Down

0 comments on commit b4649e2

Please sign in to comment.