pub struct SpecValidator;Expand description
Validates OpenAPI specifications for compatibility with Aperture
Implementations§
Source§impl SpecValidator
impl SpecValidator
Sourcepub fn validate(&self, spec: &OpenAPI) -> Result<(), Error>
pub fn validate(&self, spec: &OpenAPI) -> Result<(), Error>
Validates an OpenAPI specification for Aperture compatibility
§Errors
Returns an error if:
- The spec contains unsupported security schemes (
OAuth2,OpenIDConnect) - The spec uses $ref references in security schemes, parameters, or request bodies
- Required x-aperture-secret extensions are missing
- Parameters use content-based serialization
- Request bodies use non-JSON content types
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpecValidator
impl RefUnwindSafe for SpecValidator
impl Send for SpecValidator
impl Sync for SpecValidator
impl Unpin for SpecValidator
impl UnwindSafe for SpecValidator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more