Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Question: use enum values in custom error message #149

Open
@targhs

Description

I have the following schema

const shared_schema = {
 $id: "shared_schema",
 title: "Shared Allowed Values",
 definitions: {
 routes: {
 enum: ["R1", "R2", "R3"],
 errorMessage: "Route must be a TOC-specified allowed value: R1, R2, R3"
 }
 }
};

Is there any way i could have all the enum values defined for routes inside my errorMessage? As i don't want to write all the enum values again and again. May be something like using a json pointer ${/definitions/routes/enum}

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

        AltStyle によって変換されたページ (->オリジナル) /