Skip to content

The data model uses "name" for both namespaced and non-namespaced names #575

@eemeli

Description

@eemeli

We currently have

interface VariableRef {
type: "variable";
name: string;
}

but also
interface FunctionAnnotation {
type: "function";
kind: "open" | "close" | "value";
name: string;
options?: Option[];
}
interface Option {
name: string;
value: Literal | VariableRef;
}

In the former, the "name" is a non-namespaced name, while in the latter it's an identifier, which may also include a namespace.

Which of the following should we do?

  1. Change the function & option "names" to be called something else.
  2. Add the namespace to the data model as a separate field.
  3. Note in the text that these have different contents.
  4. Something else?

This issue was originally raised by @aphillips in #574 (comment), as markup will also be affected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    data modelIssues related to the Interchange Data ModelquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions