Skip to content

Commit dd07995

Browse files
author
Paul Hendriks
committed
minor fix
1 parent bb2037b commit dd07995

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Schema/Property.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ public function jsonSerialize(): array
4545
$property['default'] = $this->default;
4646
}
4747

48-
if ($this->format !== null) {
49-
$property['format'] = $this->format instanceof Format ? $this->format->value : null;
48+
if ($this->format instanceof Format) {
49+
$property['format'] = $this->format->value;
5050
}
5151

5252

0 commit comments

Comments
 (0)