Commit 1e8c0d38 authored by catch's avatar catch

Issue #2663290 by edurenye, Berdir, dawehner: Argument validator schemas are broken

parent c3d6658c
......@@ -73,26 +73,6 @@ views.argument_default.node:
type: string
label: 'Nid'
views.argument_validator.node:
type: mapping
label: 'Content'
mapping:
types:
type: sequence
label: 'Content types'
sequence:
type: string
label: 'Type'
access:
type: boolean
label: 'Validate user has access to the content'
access_op:
type: boolean
label: 'Access operation to check'
nid_type:
type: string
label: 'Filter value format'
views.field.node:
type: views_field
label: 'Node'
......
......@@ -59,6 +59,9 @@ views.argument_validator.taxonomy_term_name:
sequence:
type: string
label: 'Vocabulary'
transform:
type: boolean
label: 'Transform dashes in URL to spaces in term name filter values'
views.argument_default.taxonomy_tid:
type: mapping
......
......@@ -27,13 +27,10 @@ views.argument.user__roles_rid:
type: views.argument.many_to_one
label: 'Role ID'
views.argument_validator.user:
type: mapping
views.argument_validator.entity:user:
type: views.argument_validator_entity
label: 'User'
mapping:
type:
type: string
label: 'Type of user filter value to allow'
restrict_roles:
type: boolean
label: 'Restrict user based on role'
......
......@@ -14,9 +14,9 @@ views.argument_validator.php:
type: string
label: 'PHP validate code'
views.argument_validator.numeric:
type: boolean
label: 'Numeric'
views.argument_validator.*:
type: mapping
label: 'Default argument validator'
views.argument_validator_entity:
type: mapping
......
langcode: en
status: true
dependencies:
module:
- node
- user
id: test_argument_validation
label: ''
module: views
description: 'This view is used to test the argument validator schema.'
tag: ''
base_table: views_test_data
base_field: ''
core: '8'
display:
default:
display_options:
defaults:
fields: false
pager: false
sorts: false
arguments: false
fields:
age:
field: age
id: age
relationship: none
table: views_test_data
id:
field: id
id: id
relationship: none
table: views_test_data
name:
field: name
id: name
relationship: none
table: views_test_data
pager:
options:
offset: 0
type: none
sorts:
id:
field: id
id: id
order: ASC
relationship: none
table: views_test_data
arguments:
id:
id: id
table: views_test_data
field: id
relationship: none
group_type: group
admin_label: ''
default_action: ignore
exception:
value: all
title_enable: false
title: All
title_enable: false
title: ''
default_argument_type: fixed
default_argument_options:
argument: ''
default_argument_skip_url: false
summary_options:
base_path: ''
count: true
items_per_page: 25
override: false
summary:
sort_order: asc
number_of_records: 0
format: default_summary
specify_validation: false
validate:
type: numeric
fail: 'not found'
validate_options: { }
break_phrase: true
not: false
entity_type: node
entity_field: nid
plugin_id: numeric
name:
id: title
table: views_test_data
field: name
relationship: none
group_type: group
admin_label: ''
default_action: ignore
exception:
value: all
title_enable: false
title: All
title_enable: false
title: ''
default_argument_type: fixed
default_argument_options:
argument: ''
default_argument_skip_url: false
summary_options:
base_path: ''
count: true
items_per_page: 25
override: false
summary:
sort_order: asc
number_of_records: 0
format: default_summary
specify_validation: false
validate:
type: none
fail: 'not found'
validate_options: { }
glossary: false
limit: 0
case: none
path_case: none
transform_dash: false
break_phrase: true
entity_type: node
entity_field: name
plugin_id: string
user:
id: user
table: node_field_data
field: uid
relationship: none
group_type: group
admin_label: ''
default_action: ignore
exception:
value: all
title_enable: false
title: All
title_enable: false
title: ''
default_argument_type: fixed
default_argument_options:
argument: ''
default_argument_skip_url: false
summary_options:
base_path: ''
count: true
items_per_page: 25
override: false
summary:
sort_order: asc
number_of_records: 0
format: default_summary
specify_validation: false
validate:
type: 'entity:user'
fail: 'access denied'
validate_options:
access: true
operation: view
multiple: 0
restrict_roles: true
roles:
authenticated: authenticated
administrator: administrator
glossary: false
limit: 0
case: none
path_case: none
transform_dash: false
break_phrase: true
entity_type: node
entity_field: name
plugin_id: numeric
nid:
id: nid
table: node_field_data
field: nid
relationship: none
group_type: group
admin_label: ''
default_action: default
exception:
value: all
title_enable: false
title: All
title_enable: false
title: ''
default_argument_type: node
default_argument_options: { }
default_argument_skip_url: false
summary_options:
base_path: ''
count: true
items_per_page: 25
override: false
summary:
sort_order: asc
number_of_records: 0
format: default_summary
specify_validation: false
validate:
type: 'entity:node'
fail: 'not found'
validate_options:
bundles:
article: article
page: page
access: true
operation: view
multiple: 0
break_phrase: false
not: false
entity_type: node
entity_field: nid
plugin_id: node_nid
display_extenders: { }
display_plugin: default
display_title: Master
id: default
position: 0
cache_metadata:
max-age: -1
contexts:
- 'languages:language_interface'
- url
tags: { }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment