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 7, 2024
1 parent 09eeaa2 commit 8deddc5
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 8deddc5

Please sign in to comment.