You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use a json enum in a model with semi column as a value: "enum": [":"]
This raises the follwing exception:
System.InvalidOperationException: Error while rendering Liquid template CSharp/Enum:
Index was outside the bounds of the array.
at NJsonSchema.ConversionUtilities.ConvertToUpperCamelCase(String input, Boolean firstCharacterMustBeAlpha)
Version of NSwag toolchain, computer and .NET runtime used
All
To Reproduce
Typical API case:
"preferenceHourMinuteSeparator": { "type": "string", "description": "preferred separator between hour and minute", "enum": [ ":", "." ] }
The text was updated successfully, but these errors were encountered:
ALCHEMY-ALAMBIK
changed the title
"enum": ["."] is raising an invalid exception while rendering Liquid template CSharp/Enum
"enum": [":"] is raising an invalid exception while rendering Liquid template CSharp/Enum
Mar 21, 2025
Describe the bug
Use a json enum in a model with semi column as a value: "enum": [":"]
This raises the follwing exception:
System.InvalidOperationException: Error while rendering Liquid template CSharp/Enum:
Index was outside the bounds of the array.
at NJsonSchema.ConversionUtilities.ConvertToUpperCamelCase(String input, Boolean firstCharacterMustBeAlpha)
Version of NSwag toolchain, computer and .NET runtime used
All
To Reproduce
Typical API case:
"preferenceHourMinuteSeparator": { "type": "string", "description": "preferred separator between hour and minute", "enum": [ ":", "." ] }
Expected behavior
No error
Additional context
Thsi was found using API from SAP CONCUR wich JSON can be found here:
https://api.sap.com/api/ConcurIdentityV41/overview
The text was updated successfully, but these errors were encountered: