Skip to content

Commit

Permalink
修改references对应的输出jsonschema定义 (#682)
Browse files Browse the repository at this point in the history
Co-authored-by: yepeiwen01 <[email protected]>
  • Loading branch information
peiwenYe and yepeiwen01 authored Dec 23, 2024
1 parent a746f08 commit 55c8f6d
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"
},
"video_url": {
"type": "string"
"extra": {
"type": "object"
}
},
"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 55c8f6d

Please sign in to comment.