EvolvingValidator implements SchemaValidator
FinalYes
Rules of evolving schema matching: - if schemas are the same, return true - if given schema has less fields than expected schema, return false - if given schema is making a nullable field non-nullable, return false - if given schema is making a non-nullable field nullable, return true - if given schema is changing the type of a field, return false - if given schema is adding a field, return true
Interfaces
Methods
- isValid() : bool
Methods
isValid()
public
isValid(Schema $expected, Schema $given) : bool