Skip to content

Commit 2aa04c7

Browse files
Merge pull request #84 from rosette-api/WS-3224-1.30-release
Ws 3224 1.30 release
2 parents 2f2b36f + 29372f5 commit 2aa04c7

3 files changed

Lines changed: 2 additions & 26 deletions

File tree

examples/record_similarity.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"primaryName" => array("text" => "Ethan R", "language" => "eng", "script" => "Latn", "entityType" => "PERSON", "languageOfOrigin" => "eng"),
3333
"dob" => "1993-04-16",
3434
"addr" => "123 Roadlane Ave",
35-
"dob2" => array("date" => "1993/04/16")
35+
"dob2" => array("date" => "04161993", "format" => "MMddyyyy")
3636
),
3737
array(
3838
"dob" => array("date" => "1993-04-16"),
@@ -47,7 +47,7 @@
4747
array(
4848
"dob" => array("date" => "1993-04-16"),
4949
"primaryName" => "Ivan R",
50-
"addr" => array("address" => "123 Roadlane Ave"),
50+
"addr" => array("houseNumber" => "123", "road" => "Roadlane Ave"),
5151
"dob2" => array("date" => "1993/04/16")
5252
)
5353

source/rosette/api/RecordSimilarityParameters.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,6 @@ public function __construct(array $fields, array $properties, array $records)
6161
*/
6262
public function validate(): void
6363
{
64-
if (empty($this->fields)) {
65-
throw new RosetteException(
66-
'Required record similarity parameter not supplied: fields',
67-
RosetteException::$BAD_REQUEST_FORMAT
68-
);
69-
}
70-
if (empty($this->properties)) {
71-
throw new RosetteException(
72-
'Required record similarity parameter not supplied: properties',
73-
RosetteException::$BAD_REQUEST_FORMAT
74-
);
75-
}
7664
if (empty($this->records)) {
7765
throw new RosetteException(
7866
'Required record similarity parameter not supplied: records',

spec/rosette/api/RecordSimilarityParametersSpec.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,6 @@ public function it_passes_validation($fields, $properties, $records)
1414
$this->shouldNotThrow(RosetteConstants::$RosetteExceptionFullClassName)->duringValidate();
1515
}
1616

17-
public function it_has_fields_undefined($fields, $properties, $records)
18-
{
19-
$this->beConstructedWith((array)null, (array)$properties, (array)$records);
20-
$this->shouldThrow(RosetteConstants::$RosetteExceptionFullClassName)->duringValidate();
21-
}
22-
23-
public function it_has_properties_undefined($fields, $properties, $records)
24-
{
25-
$this->beConstructedWith((array)$fields, (array)null, (array)$records);
26-
$this->shouldThrow(RosetteConstants::$RosetteExceptionFullClassName)->duringValidate();
27-
}
28-
2917
public function it_has_records_undefined($fields, $properties, $records)
3018
{
3119
$this->beConstructedWith((array)$fields, (array)$properties, (array)null);

0 commit comments

Comments
 (0)