Skip to content

Commit eac03d7

Browse files
authored
Merge pull request #4 from aliyun/fix/enum-value-titles
fix:enum bug
2 parents 0e2aad0 + 8303aaa commit eac03d7

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)