We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b489ea commit 7b3c2c2Copy full SHA for 7b3c2c2
src/JsonSchema/DraftIdentifiers.php
@@ -5,8 +5,6 @@
5
namespace JsonSchema;
6
7
/**
8
- * @extends Enum<DraftIdentifiers::*>
9
- *
10
* @method static DraftIdentifiers DRAFT_3()
11
* @method static DraftIdentifiers DRAFT_4()
12
* @method static DraftIdentifiers DRAFT_6()
@@ -38,9 +36,9 @@ public function toConstraintName(): string
38
36
return 'draft2019-09';
39
37
case self::DRAFT_2020_12:
40
return 'draft2020-12';
+ default:
+ throw new \Exception('Unsupported schema URI: ' . $this->getValue());
41
}
42
-
43
- throw new \Exception('Unsupported schema URI: ' . $this->getValue());
44
45
46
public function withoutFragment(): string
0 commit comments