Something along the lines of
paths:
/users/extensions:
get:
description: "asd"
responses:
default:
$ref: "#/components/schemas/objectOfPanels"
components:
schemas:
objectOfPanels:
$ref: "#/components/schemas/panels"
panels:
type: object
required:
- '1'
- '2'
- '3'
properties:
'1':
$ref: "#/components/schemas/panel"
'2':
$ref: "#/components/schemas/panel"
'3':
$ref: "#/components/schemas/panel"
panel:
type: object
required:
- active
properties:
active:
type: boolean
id:
type: string
version:
type: string
name:
type: string