Skip to content

Commit 8303aaa

Browse files
committed
fix:enum bug
1 parent 0e2aad0 commit 8303aaa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

media/src/components/APIPage/APIDocument/ApiParamsDoc.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ export const ApiParamsDoc: React.FC<PontxParamsDocProps> = (props) => {
2424
} as SemixJsonSchema;
2525
if (props.parameters) {
2626
props.parameters.forEach((param) => {
27+
if(param.schema?.enumValueTitles && param.schema?.enum){
28+
delete param.schema.enumValueTitles;
29+
}
2730
if (schema.properties) {
2831
schema.properties[param.name] = {
2932
...(param.schema || {}),

0 commit comments

Comments
 (0)