fix(openapi): pass isRequired to parameter enum fields in playground (#3038)

This commit is contained in:
Yoonseok Lee
2026-02-25 13:09:50 +08:00
committed by GitHub
parent 3387a2db80
commit 5a9b381353
2 changed files with 6 additions and 0 deletions
@@ -0,0 +1,5 @@
---
'fumadocs-openapi': patch
---
Pass `isRequired` to `FieldSet` for parameter enum fields in playground, fixing required enum parameters incorrectly showing an "Unset" option.
@@ -402,6 +402,7 @@ function FormBody({ parameters = [], body }: Pick<PlaygroundClientProps, 'parame
name={field.name}
fieldName={fieldName}
field={schema}
isRequired={field.required}
/>
);
})}