Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-10412

v2 API: many API command specification properties are typed "number" but should instead be typed "integer"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0
    • Component/s: v2 API
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None

      Description

      JSON schema distinguishes between the number type (which is the same as JSON's number, i.e. an arbitrary precision floating point number) and the integer type; the latter requires integral values.

      Here are the inappropriately typed number properties I found - note that every single number type in current use should instead be an integer:

      apispec file command property/ies
      collections.collection.Commands.json rebalance-leaders maxAtOnce, maxWaitSeconds
      collections.Commands.json create numShards, replicationFactor
      core.SchemaEdit.addFieldType.json N/A positionIncrementGap
      cores.Commands.json create numShards

        Attachments

          Activity

            People

            • Assignee:
              caomanhdat Cao Manh Dat
              Reporter:
              steve_rowe Steve Rowe
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: