Skip to content

Commit 92971ca

Browse files
committed
Fix pascal namespace reference casing in union types
1 parent 57d17ba commit 92971ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TypedocConverter/Printer.fs

+1-1
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ let printUnionTypeNewtonsoftJsonConverter (writer: System.IO.TextWriter) (unionT
487487
let printUnionType (writer: System.IO.TextWriter) (config: Config) (references: string list) (unionType: string list) =
488488
fprintfn writer "namespace TypedocConverter.GeneratedTypes"
489489
fprintfn writer "{"
490-
references |> List.iter (fun x -> fprintfn writer " using %s;" x)
490+
references |> List.iter (fun x -> fprintfn writer " using %s;" (toPascalCase x))
491491
let name = getUnionTypeName unionType
492492
let typeMark = if config.NrtDisabled then "" else "?"
493493
if config.UseSystemJson then

0 commit comments

Comments
 (0)