diff --git a/parser/Parser.Tests/PrimitiveDataTypeExampleGeneratorTests.cs b/parser/Parser.Tests/PrimitiveDataTypeExampleGeneratorTests.cs index badaef2..8845a1e 100644 --- a/parser/Parser.Tests/PrimitiveDataTypeExampleGeneratorTests.cs +++ b/parser/Parser.Tests/PrimitiveDataTypeExampleGeneratorTests.cs @@ -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); diff --git a/parser/Parser/PrimitiveDataTypeExampleGenerator.cs b/parser/Parser/PrimitiveDataTypeExampleGenerator.cs index 85cc5f0..2cffae4 100644 --- a/parser/Parser/PrimitiveDataTypeExampleGenerator.cs +++ b/parser/Parser/PrimitiveDataTypeExampleGenerator.cs @@ -18,6 +18,8 @@ namespace Parser return "42.0"; case "boolean": return "True"; + case "array": + return "attr1,attr2"; case "string": { const string example = "example";