Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-65834

Add validation for array types in idl generator

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • None
    • None
    • None
    • Fully Compatible

    Description

      Currently validators are not used for parameters of type array in command argument parsing. For instance :

      tenantIds:
          description: "The identifier for the list of tenants being migrated."
          type: array<string>
          validator:
              callback: "tenant_migration_util::validateDatabasePrefix"

      The function validateDatabasePrefix is not called when the commands is called, which means there's no validation on tenantIds.

      Attachments

        Activity

          People

            didier.nadeau@mongodb.com Didier Nadeau
            didier.nadeau@mongodb.com Didier Nadeau
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: