graphql-platform icon indicating copy to clipboard operation
graphql-platform copied to clipboard

DefaultTypeConverter does not follow documention with regards to UUID Type

Open adminnz opened this issue 3 months ago • 0 comments

Product

Hot Chocolate

Version

15.1.11

Link to minimal reproduction

https://github.com/ChilliCream/graphql-platform/blob/8d40687968d29242710d26281b69b7a16913315e/src/HotChocolate/Core/src/Types/Utilities/DefaultTypeConverter.Setup.cs#L98

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

adminnz avatar Nov 06 '25 22:11 adminnz