Skip to content

Validate redirects directly in compatibility tables #174

@scripthunter7

Description

@scripthunter7

Currently, in modifiers compatibility table, we list possible values for redirect: https://github.com/AdguardTeam/tsurlfilter/blob/master/packages/agtree/src/compatibility-tables/modifiers/redirect.yml and https://github.com/AdguardTeam/tsurlfilter/blob/master/packages/agtree/src/compatibility-tables/modifiers/redirect-rule.yml

However, we have a separate compatibility table for redirect resources: https://github.com/AdguardTeam/tsurlfilter/tree/master/packages/agtree/src/compatibility-tables/redirects

We should came up with a new value validator for redirects which based on the redirects compatibility tables, e.g. redirect_resource_for:<platforms_selector>

adg_os_any:
  name: redirect
  description: Used to redirect web requests to a local "resource".
  # ...
  value_format: redirect_resource_for:adg_os_any

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions