Added support for array attributes

This commit is contained in:
Jan Stárek
2019-10-30 15:43:12 +01:00
parent 1646793087
commit 0a1bd6426f
2 changed files with 3 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ namespace Parser.Tests
[TestCase("string", "date", "2002-10-02")]
[TestCase("string", "date-time", "2002-10-02T10:00:00-05:00")]
[TestCase("string", "password", "example")]
[TestCase("array", null, "attr1,attr2")]
public void ValidCombinationsShouldReturnValidValue(string type, string format, string expected)
{
string example = PrimitiveDataTypeExampleGenerator.GenerateExampleValueByType(type, format);

View File

@@ -18,6 +18,8 @@ namespace Parser
return "42.0";
case "boolean":
return "True";
case "array":
return "attr1,attr2";
case "string":
{
const string example = "example";