This removes dumping the Go data structure for type: array (indirectly checked by looking for items:) at the top-level of a response schema description.
If no item type is defined for an array, still render the property (with an indicated type of array).
For arrays with a defined item type (excluding items: type: ''), display array<type> instead of [type].
We don't seem to have an example for this but I tested it locally
Now displays a clickable array item instead of nothing
responses:
'200':
description: |
The list of collections
content:
application/json:
schema:
description: |
The data type is an array but without specification of its elements.
type: array
Description
This removes dumping the Go data structure for
type: array
(indirectly checked by looking foritems:
) at the top-level of a response schema description.If no item type is defined for an array, still render the property (with an indicated type of
array
).For arrays with a defined item type (excluding
items: type: ''
), displayarray<type>
instead of[type]
.Empty item type,
array
:No debug-dumping of top-level arrays,
array<object>
instead of[object]
:Array with no items defined:
array
item instead of nothingUpstream PRs