RicoSuter/NSwag
在 GitHub 查看C# Controller Code Does Not Compile When Operation Id Has Underscore Followed By Digit
Open
#2,192 建立於 2019年5月27日
help wantedproject: NSwag.CodeGenerationtype: enhancement
倉庫指標
- Star
- (6,291 star)
- PR 合併指標
- (30 天內沒有已合併 PR)
描述
The C# controller code generated for the definition below, fails to compile, with the following error message: Error CS1519: Invalid token '1' in class, struct, or interface member declaration
{ "openapi": "3.0.1", "info": { "title": "OperationId with an underscore followed by a digit", "version": "v1" }, "paths": { "/gettext": { "get": { "operationId": "gettext_1", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "string" } } }, "x-annotation-nullable": true } } } } } }