Skip to content

add various restricctions to distinct  #378

Open
@SmartLayer

Description

@SmartLayer

For a top-level <token> element, there can be many <attribute>. Current schema (in the distinct branch) allows any number of elements to have a boolean attribute distinct which defaults to false,

If it is set to true, we say that the attribute is distinct.

That means potentially developers can create a tokenscript file with multiple distinct attributes, which is not supported (at least not in this year)

Can you

  1. restrain it so that for all <attribute> under the <token> only one can have the attribute distinct with value true.

  2. for a TokenScript that didn't define <origins> under <token>,, require at least one of the <attribute> has distinct?

  3. distinct attribute is not allowed for attributes in <card>, only if it is directly in <token> (the global element <token>).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions