Skip to content

Commit

Permalink
Merge pull request #156 from rbatistajs/patch-1
Browse files Browse the repository at this point in the history
Close namespaces bracket in generateEnum
  • Loading branch information
endel authored Sep 24, 2023
2 parents aef7a9a + 3a9ffe5 commit c3d0358
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/codegen/languages/csharp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ ${_enum.properties
return `${indent}\tpublic const ${dataType} ${prop.name} = ${value};`;
})
.join("\n")}
${indent}}`
${indent}}
${namespace ? "}" : ""}`
}

function generateProperty(prop: Property, indent: string = "") {
Expand Down Expand Up @@ -211,4 +212,4 @@ function getType(prop: Property) {
? `${typeMaps[prop.childType] || prop.childType}[]`
: typeMaps[prop.type];
}
}
}

0 comments on commit c3d0358

Please sign in to comment.