There's currently no easy way to validate whether a type is yaml serializable, which prevents us from writing some test or analyzer that checks whether data fields are actually serializable. #5578 added a bandaid NotYamlSerializable attribute for blacklisting specific types, but that should be replaced with a proper test. Adding proper validation probably requires refactoring yaml serialisers so that they have something similar to NetSerializer.ITypeSerializer.GetSubtypes, where all serializers are forced to specify all sub-types that they depend which also need to be serializable.