Fix metadata config (#14480)

### What problem does this PR solve?

Fix metadata config

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Wang Qi
2026-04-29 21:09:54 +08:00
committed by GitHub
parent d4147efc66
commit 5018459112
5 changed files with 14 additions and 169 deletions

View File

@@ -70,11 +70,10 @@ def add_dataset_with_metadata(HttpApiAuth):
headers={"Content-Type": "application/json"},
auth=HttpApiAuth,
json={
"enabled": False,
"fields": [
{"name": "character", "type": "string", "description": "Historical figure name"},
{"name": "era", "type": "string", "description": "Historical era"},
{"name": "achievements", "type": "list", "description": "Major achievements"},
"metadata": [
{"key": "character", "type": "string", "description": "Historical figure name"},
{"key": "era", "type": "string", "description": "Historical era"},
{"key": "achievements", "type": "list", "description": "Major achievements"},
]
}
).json()