Skip to content

Commit 20271bc

Browse files
committed
Allow writable fields to show up in the Open API 'create' schemas
1 parent 3d24d48 commit 20271bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OpenApi/OpenApiGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function generate(JsonApi $api): array
5151
}
5252
}
5353

54-
if ($field->writableOnCreate) {
54+
if ($field->writable || $field->writableOnCreate) {
5555
$createSchema[$location]['properties'][$field->name] = $fieldSchema;
5656
if ($field->isRequired()) {
5757
$createSchema[$location]['required'][] = $field->name;

0 commit comments

Comments
 (0)