We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON
"/entity({entity_id})": parameters: - name: entity_id in: path required: true schema: type: string format: uuid - name: $select in: query schema: type: array items: type: string enum: ['*', 'id', 'name'] default: '*' style: form explode: false
When "*" is an enum, generated C# client class has following
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.13.13.0 (Newtonsoft.Json v11.0.0.0)")] public enum Anonymous { [System.Runtime.Serialization.EnumMember(Value = @"*")] * = 0, [System.Runtime.Serialization.EnumMember(Value = @"id")] Id = 1, [System.Runtime.Serialization.EnumMember(Value = @"name")] Name = 2, }
Since "*" is not a valid variable name in C#, compiler gives an error. Problem is probably in here.
The text was updated successfully, but these errors were encountered:
RicoSuter/NJsonSchema@7709863
No branches or pull requests
JSON
When "*" is an enum, generated C# client class has following
Since "*" is not a valid variable name in C#, compiler gives an error. Problem is probably in here.
The text was updated successfully, but these errors were encountered: