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 3d24d48 commit 20271bcCopy full SHA for 20271bc
src/OpenApi/OpenApiGenerator.php
@@ -51,7 +51,7 @@ public function generate(JsonApi $api): array
51
}
52
53
54
- if ($field->writableOnCreate) {
+ if ($field->writable || $field->writableOnCreate) {
55
$createSchema[$location]['properties'][$field->name] = $fieldSchema;
56
if ($field->isRequired()) {
57
$createSchema[$location]['required'][] = $field->name;
0 commit comments