You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
0: Enum failed, enum: ["array","boolean","integer","null","number","object","string"], data: "uri" at #->properties:properties->additionalProperties:second_prop->properties:type->anyOf[0]
49
+
1: Array expected, "uri" received at #->properties:properties->additionalProperties:second_prop->properties:type->anyOf[1]
50
+
} at #->properties:properties->additionalProperties:second_prop->properties:type', $e->getMessage());
51
+
}
52
+
53
+
$this->assertTrue($exceptionCaught);
54
+
}
55
+
56
+
57
+
publicfunctiontestIssueFile()
58
+
{
59
+
$path = __DIR__ . '/schema.json';
60
+
$path = substr($path, strlen(getcwd()) + 1);
61
+
62
+
$exceptionCaught = false;
63
+
try {
64
+
Schema::import($path);
65
+
} catch (InvalidValue$e) {
66
+
$exceptionCaught = true;
67
+
68
+
$this->assertEquals('No valid results for anyOf {
69
+
0: Enum failed, enum: ["array","boolean","integer","null","number","object","string"], data: "uri" at #->$ref:tests/src/PHPUnit/Suite/schema.json->properties:properties->additionalProperties:second_prop->properties:type->anyOf[0]
70
+
1: Array expected, "uri" received at #->$ref:tests/src/PHPUnit/Suite/schema.json->properties:properties->additionalProperties:second_prop->properties:type->anyOf[1]
71
+
} at #->$ref:tests/src/PHPUnit/Suite/schema.json->properties:properties->additionalProperties:second_prop->properties:type', $e->getMessage());
0 commit comments