Redocly / redoc

📘 OpenAPI/Swagger-generated API Reference Documentation
https://redocly.github.io/redoc/
MIT License
22.88k stars 2.26k forks source link

minLength/maxLength not shown for array items with pattern #2544

Open P-Lng opened 1 month ago

P-Lng commented 1 month ago

An array item that has pattern and minLength/maxLength defined, only shows pattern. Plain properties behave as expected, they display both.

image

Expected behavior Show all restrictions: Array of strings [[ 1 .. 10 ] characters ^[A-Z]+$]

Minimal reproducible OpenAPI snippet

properties:
  plain_property:
    type: string
    pattern: '^[A-Z]+$'
    minLength: 1
    maxLength: 10
  array_items:
    type: array
    items:
      type: string
      pattern: '^[A-Z]+$'
      minLength: 1
      maxLength: 10