Skip to content

Commit 400221e

Browse files
committed
Use getSerializableData() instead
1 parent 38c86b0 commit 400221e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/spec/OpenApi.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
use cebe\openapi\exceptions\TypeErrorException;
1111
use cebe\openapi\SpecBaseObject;
12-
use cebe\openapi\Writer;
1312
use \JsonSerializable;
1413

1514
/**
@@ -83,6 +82,6 @@ public function performValidation()
8382
}
8483

8584
public function jsonSerialize() {
86-
return Writer::writeToJson($this);
85+
return $this->getSerializableData();
8786
}
8887
}

0 commit comments

Comments
 (0)