Skip to content

Parameter Min/Max #1461

@dicolanl

Description

@dicolanl

We have a parameter in openapi

limitParameter:
      name: _limit
      in: query
      description: Limit the return results
      required: true
      schema:
        type: integer
        default: 30
        maximum: 400
        minimum: 1

but in docs that are generated it doesnt say min or max.

-Limit

Limit the return results

Type: System.Int32
Parameter Sets: List
Aliases:

Required: False
Position: Named
Default value: 30
Accept pipeline input: False
Accept wildcard characters: False

Is there a way to have autorest pass these to the docs?
default was passed using a directive, but maybe the geneartor can just inherit from the openapi spec the default too?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions