Skip to content

Commit 3f09333

Browse files
committed
Throw an exception if GetCoreTypesFor() does not match a known core type.
1 parent cbb46fe commit 3f09333

File tree

1 file changed

+1
-1
lines changed
  • Solutions/Corvus.Json.CodeGeneration/Corvus.Json.CodeGeneration/Types

1 file changed

+1
-1
lines changed

Solutions/Corvus.Json.CodeGeneration/Corvus.Json.CodeGeneration/Types/Types.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ public static CoreTypes GetCoreTypesFor(JsonElement typeValue)
5656
return CoreTypes.Integer;
5757
}
5858

59-
return CoreTypes.None;
59+
throw new InvalidOperationException($"Unrecognized core type: {typeValue}");
6060
}
6161
}

0 commit comments

Comments
 (0)