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 bb2037b commit dd07995Copy full SHA for dd07995
src/Schema/Property.php
@@ -45,8 +45,8 @@ public function jsonSerialize(): array
45
$property['default'] = $this->default;
46
}
47
48
- if ($this->format !== null) {
49
- $property['format'] = $this->format instanceof Format ? $this->format->value : null;
+ if ($this->format instanceof Format) {
+ $property['format'] = $this->format->value;
50
51
52
0 commit comments