AdonisJS API
    Preparing search index...
    • Parameters

      • Optionaloptions: SchemaFnOptions

      Returns (key: string, value?: string) => Secret<string>

    Index
    • Same as the Secret rule, but allows non-existing values too

      Returns (_: string, value?: string) => Secret<string> | undefined

    • Same as the optional rule, but allows a condition to decide when to validate the value

      Parameters

      • condition: boolean | ((key: string, value?: string) => boolean)
      • Optionaloptions: SchemaFnOptions

      Returns (key: string, value?: string) => Secret<string> | undefined