Skip to content

Commit

Permalink
port x-enumDescription fix from #981
Browse files Browse the repository at this point in the history
  • Loading branch information
sserrata committed Oct 3, 2024
1 parent 04577f4 commit a387b7e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ const ParamsDetails: React.FC<Props> = ({ parameters }) => {
param={{
...param,
enumDescriptions: Object.entries(
param?.schema?.items?.["x-enumDescriptions"] ?? {}
param?.schema?.["x-enumDescriptions"] ??
param?.schema?.items?.["x-enumDescriptions"] ??
{}
),
}}
/>
Expand Down

0 comments on commit a387b7e

Please sign in to comment.