Skip to content

There is no way to test if a type is yaml serializable #6252

@ElectroJr

Description

@ElectroJr

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions