Skip to content

Unable to use "string" in enum as a value #38

Open
@MQ-xz

Description

@MQ-xz

Schema

args:
  - name:
      type: string
      required: true
    description:
      type: string
    required:
      type: boolean
    type:
      type: string
      enum: ["string", "url", "domain", "path", "status", "ip", "list"]

yml code

args:
  - description:
    name: domain
    required: false
    type: string

error got

| {
|     "file": "xxx/xxx.yml",
|     "errors": [
|       {
|         "path": "args.0.type",
|         "message": "args.0.type must be either function String() { [native code] }, url, domain, path, status, ip or list."
|       }
|     ]
|   },

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions