Skip to content

path pattern : regular expression vs. examples #63

Open
@Airy59

Description

@Airy59

Currently, ifcx.tsp stipulates:

@pattern("</[A-Za-z0-9_/.:]+>")
scalar path extends string;

model IfcxNode {
    path: path;
    children?: Record<string | null>;
    inherits?: Record<string | null>;
    attributes?: Record<unknown>;
}

The pattern decorator for path accepts a regular expression that does not include hyphens -, and more generally would exclude paths found in example, such as "path": "25503984-6605-43a1-8597-eae657ff5bea" (in hello-wall.ifcx) where the start '</' and end '>' are missing.

Also, even if the pattern were corrected to allow UUIDs, it might still exclude URIs or IRIs, which can be made unique using adequate strategies when needed. What are the reason(s) to deter from using URIs?

Metadata

Metadata

Assignees

No one assigned

    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