code: def validate(self):
          
          schema = Schema(self.__class__.SCHEMA)
          resolver = RefResolver.from_schema(
              schema,
              store=REGISTRY,
          )
          validate(self, schema, resolver=resolver)
docs: Validate that this instance matches its schema.