in asfyaml/validators.py [0:0]
def validate_scalar(self, chunk):
val = chunk.contents
if val.lower() not in ("null", "~"):
chunk.expecting_but_found(f"when expecting a 'null', got '{val}' instead.")
else:
return self.empty(chunk)