Skip to content

DefaultTypeConverter does not follow documention with regards to UUID Type #8876

@adminnz

Description

@adminnz

Product

Hot Chocolate

Version

15.1.11

Link to minimal reproduction

registry.Register<Guid, string>(from => from.ToString("N"));

Steps to reproduce

The documentation states that the default serialization format is "D" (00000000-0000-0000-0000-000000000000).

But if the AnyType is specified, it will end up in the DefaultTypeConverter.
Which has the Guid format registered as:

registry.Register<Guid, string>(from => from.ToString("N"));

Here is the Code

What is expected?

DefaultTypeConvert follows documented defaults for UUID.

What is actually happening?

DefaultTypeConvert does not follow documented defaults for UUID.

Relevant log output

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions