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

bojanz created an issue. See original summary.

bojanz’s picture

bojanz’s picture

Title: User argument validator has a broken schema » User and node argument validators have broken schema
Status: Active » Needs review
StatusFileSize
new1.6 KB

The 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.

edurenye’s picture

Status: Needs review » Closed (duplicate)

We 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.