From 09319a26e922e7ebdfadb15a328112ea3a6cc7db Mon Sep 17 00:00:00 2001 From: Glen Date: Sun, 2 Apr 2023 23:35:35 +0200 Subject: [PATCH] Correct the default format for UUIDs (#6013) --- src/HotChocolate/Core/src/Types/Types/Scalars/UuidType.cs | 6 +++--- .../src/docs/hotchocolate/v13/defining-a-schema/scalars.md | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/HotChocolate/Core/src/Types/Types/Scalars/UuidType.cs b/src/HotChocolate/Core/src/Types/Types/Scalars/UuidType.cs index 57a2e019fc2..50096bd2b04 100644 --- a/src/HotChocolate/Core/src/Types/Types/Scalars/UuidType.cs +++ b/src/HotChocolate/Core/src/Types/Types/Scalars/UuidType.cs @@ -27,7 +27,7 @@ public UuidType() : this('\0') /// /// The expected format of GUID strings by this scalar. /// 'N': nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn - /// 'D'(default): nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn + /// 'D' (default): nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn /// 'B': {nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn} /// 'P': (nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn) /// @@ -58,8 +58,8 @@ public UuidType(char defaultFormat = '\0', bool enforceFormat = false) /// /// /// The expected format of GUID strings by this scalar. - /// 'N' (default): nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn - /// 'D': nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn + /// 'N': nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn + /// 'D' (default): nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn /// 'B': {nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn} /// 'P': (nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn) /// diff --git a/website/src/docs/hotchocolate/v13/defining-a-schema/scalars.md b/website/src/docs/hotchocolate/v13/defining-a-schema/scalars.md index 23ee4d76b87..b3ec052c880 100644 --- a/website/src/docs/hotchocolate/v13/defining-a-schema/scalars.md +++ b/website/src/docs/hotchocolate/v13/defining-a-schema/scalars.md @@ -215,8 +215,8 @@ The `Uuid` scalar supports the following serialization formats. | Specifier | Format | | ----------- | -------------------------------------------------------------------- | -| N (default) | 00000000000000000000000000000000 | -| D | 00000000-0000-0000-0000-000000000000 | +| N | 00000000000000000000000000000000 | +| D (default) | 00000000-0000-0000-0000-000000000000 | | B | {00000000-0000-0000-0000-000000000000} | | P | (00000000-0000-0000-0000-000000000000) | | X | {0x00000000,0x0000,0x0000,{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}} |