I added an "Owner" argument, and enable the "User ID" validation, with "Validate user has access to the User" (though I'm guessing it will crash without that as well).
The schema check tells me:
Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for
views.view.commerce_user_orders with the following errors:
views.view.commerce_user_orders:display.default.display_options.arguments.uid.validate_options.restrict_roles
missing schema,
views.view.commerce_user_orders:display.default.display_options.arguments.uid.validate_options.roles
missing schema in
The exported argument has:
validate:
type: 'entity:user'
fail: 'not found'
validate_options:
operation: view
multiple: 0
access: false
restrict_roles: 0
roles: { }
The 'entity:user' creates a problem, cause the schema is defined for "views.argument_validator.user"
Comments
Comment #2
bojanz commentedComment #3
bojanz commentedThe node one looks weird too. There's no Node plugin that extends the derivative Entity one, so it shouldn't have its own keys.
Let's try this.
Comment #4
edurenye commentedWe don't need to define entity:node at all as it does not define any extra option over entity.
Let's merge this issue into #2663290: Argument validator schemas are broken and add the tests there.