-
Notifications
You must be signed in to change notification settings - Fork 0
Prostoria 534 add matrix field support #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
JakovKnezovicc
commented
Jul 25, 2025
- adds ezmatrix field schema provider
- adds ezmatrix field value visitor
netgen.openapi_ibexa.ibexa.field_value_schema_provider.matrix: | ||
class: Netgen\OpenApiIbexa\OpenApi\SchemaProvider\Ibexa\FieldValue\MatrixFieldValueSchemaProvider | ||
tags: | ||
- { name: netgen.openapi_ibexa.ibexa.field_value_schema_provider, identifier: ezmatrix } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing empty line at EOF
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing empty line at EOF
Added in 8a9fba3
@JakovKnezovicc please resolve PHPStan errors |
{ | ||
return new Schema\ArraySchema( | ||
new Schema\ObjectSchema( | ||
properties: [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't use named parameters, we don't use them here.
I don't have anything against them, but I'd rather keep the code style consistent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adjusted in c84f0a4
public function visit(object $value, OutputVisitor $outputVisitor, array $parameters = []): array | ||
{ | ||
return array_map( | ||
static fn ($row) => $row->getCells(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can add a return typehint to the arrow function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in e39cd3c
PHPStan needs to be fixed. It is failing because it can't find the classes for Matrix field type.
Scratch that, I see that we already ignore errors based on unavailable field types, so just add an exclusion to |
… for missing classes in neon
Thanks @JakovKnezovicc ! |