[BUG] Schema Definitions doesn't recursively define types #45501
Labels
kind/bug
Issues that are defects reported by users or that we know have reached a real release
priority/0
team/frameworks
the team that is responsible for frameworks, projects, webhook, and other various areas
Milestone
Rancher Server Setup
0b9e86cf33297eb458b3a9ac7e8a53972c0062e9
)Information about the Cluster
User Information
Describe the bug
SchemaDefinitions use a
type
and asubType
field when defining types. In the cases wheretype
is amap
orarray
, thesubType
provides the type of the entries in the collection (for a map, the key is always a string). However, if thissubType
is also amap
orarray
, there's no way to provide more information about the sub-type of that nested value.To Reproduce
rancher/rancher:v2.9-head
.selfsubjectreview
by going to/v1/schemaDefinitions/authentication.k8s.io.selfsubjectreview
.io.k8s.api.authentication.v1.UserInfo
entry in the definitions.extra
resourceField. Note thattype
ismap
andsubtype
isarray
.Result
Note that for the
extra
resourceField thetype
ismap
andsubtype
isarray
.Expected Result
Type should be
map[array[string]]
, like in/v1/schemas/io.k8s.api.authorization.v1.SubjectAccessReviewSpec
for 2.8.3.Screenshots
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: