Schema error at paths[’/persons/{personid}/events/{eventid}/subCategories’].put.parameters[0]
should NOT have additional properties
additionalProperty: type, items, collectionFormat, name, in, required
Jump to line 967
Schema error at paths[’/persons/{personid}/events/{eventid}/subCategories’].put.parameters[0].in
should be equal to one of the allowed values
allowedValues: header, formData, query, path
Jump to line 968
Schema error at paths[’/persons/{personid}/events/{eventid}/subCategories’].put.parameters[0].items
should NOT have additional properties
additionalProperty: $ref
Jump to line 970
Schema error at paths[’/persons/{personid}/events/{eventid}/subCategories’].put.parameters[0].collectionFormat
should be equal to one of the allowed values
allowedValues: csv, ssv, tsv, pipes
Jump to line 972
As you can see , there is something wrong with the array declaration ,
if I replace
public List Subcategories { get; set; }
with
public SubCategoryWrite Subcategories { get; set; }
FYI I’d recommend against using interfaces in DTOs, esp. for IList<T> which is almost always a container for the concrete List<T> which your DTO Service Contracts should be using instead.