private void SerializeRequired(JsonWriter writer) { if (Required != null && Required.Any()) { writer.WritePropertyName("required"); writer.WriteStartArray(); foreach (string req in Required) { writer.WriteValue(req); } writer.WriteEndArray(); } }