pub struct SchemaValidator;Expand description
Enhanced schema validator
Implementations§
Source§impl SchemaValidator
impl SchemaValidator
Sourcepub fn validate(schema: &IntermediateSchema) -> Result<ValidationReport>
pub fn validate(schema: &IntermediateSchema) -> Result<ValidationReport>
Validate an intermediate schema with detailed error reporting
Sourcepub fn validate_federation(metadata: &FederationMetadata) -> Result<()>
pub fn validate_federation(metadata: &FederationMetadata) -> Result<()>
Validate federation metadata for @requires/@provides/@external directives
Checks:
- @requires references existing fields
- @external only on @extends types
- No circular dependencies in @requires directives
- @key fields are valid
Note: This method is used by integration tests that don’t expose it via the CLI module.
Auto Trait Implementations§
impl Freeze for SchemaValidator
impl RefUnwindSafe for SchemaValidator
impl Send for SchemaValidator
impl Sync for SchemaValidator
impl Unpin for SchemaValidator
impl UnwindSafe for SchemaValidator
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