mrdavidlaing/webservice-schema — Issue #4: Bug - List<DTO> gives different schema to IList<DTO>
Author: mrdavidlaing
Created: 2011-11-25 17:10:45+00:00
State: open

Schema generated for IList is different to schema for List. Surely these are both arrays of type DTO?

eg:

///

/// List of If/Done Orders which will be filled when
/// the initial order is triggered.
///

///
[DataMember]
public IList IfDone { get; set; }

gives:

"IfDone": {
"type": "array",
"items": [
{
"$ref": "ApiIfDoneDTO"
}
],
"description": "List of If/Done Orders which will be filled when the initial order is triggered."
},

BUT

///

/// List of If/Done Orders which will be filled when
/// the initial order is triggered.
///

///
[DataMember]
public List IfDone { get; set; }

gives:

"IfDone": {
"type": "array",
"items": [
{
"$ref": "ApiIfDoneDTO"
}
],
"description": "List of If/Done Orders which will be filled when the initial order is triggered."
},

What are these different? Which is correct?