Skip to content

Commit

Permalink
修改reference的输出校验schema
Browse files Browse the repository at this point in the history
  • Loading branch information
yepeiwen01 committed Dec 23, 2024
1 parent 9d591e1 commit 1ede730
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions python/tests/component_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,38 +148,23 @@
"type": {
"type": "string"
},
"resource_type": {
"type": "string"
},
"doc_id": {
"type": "string"
},
"icon": {
"type": "string",
},
"site_name": {
"type": "string"
},
"content": {
"type": "string"
},
"title": {
"type": "string"
},
"mock_id": {
"source": {
"type": "string"
},
"from": {
"type": "string"
},
"image_url": {
"type": "string"
"extra": {
"type": "object"
},
"video_url": {
"type": "string"
}
},
"required": ["type", "resource_type", "doc_id", "icon", "site_name", "content", "title", "mock_id", "from", "image_url", "video_url"]
"required": ["type", "doc_id", "content", "title", "source"]
}

image_schema = copy.deepcopy(base_item_schema)
Expand Down

0 comments on commit 1ede730

Please sign in to comment.