I’m submitting a…
- [ x] Bug report
We added a “string” nested field to a scheme. In the validation settings of the field, the “Required” property is disabled.
After adding the content and not filling the corresponding field, the api call produces the following error:
An unhandled exception occurred while processing the request.
JsonSerializationException: Required property ‘service-7’ expects a non-null value. Path ‘data.service-block.iv’, line 1, position 1930.
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EndProcessProperty(object newObject, JsonReader reader, JsonObjectContract contract, int initialDepth, JsonProperty property, PropertyPresence presence, bool setDefaultValue)
This is because we used the CSharpCielntGenerator which generated the properties based on swagger (NSwag) as follows: “Required = Newtonsoft.Json.Required.DisallowNull”
- [ ] Self hosted with docker
- [ ] Self hosted with IIS
- [ ] Self hosted with other version
- [x] Cloud version