Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.
This repository was archived by the owner on May 19, 2025. It is now read-only.

Undefined function: prior #169

@FrankChung

Description

@FrankChung

I have a bolt file as follow:

path /test is Map<Test, String> {}

type Test extends String {
  validate() { prior(root) != null }
}

I got an error as:
bolt: Generating test.json...
bolt:1:1: Undefined function: prior
bolt: Could not generate JSON: 1 errors.

But if I don't put the Test type as a key of the map, it compiles correctly.

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