Refine descriptions for service, technology, and endpoint arrays

This commit is contained in:
jumpcom
2025-12-24 21:31:17 +07:00
committed by GitHub
parent 3204481ba4
commit fc1c429212

View File

@@ -210,19 +210,51 @@ def _validate_note_schema(category: str, metadata: Dict[str, Any]) -> str | None
},
"services": {
"type": "array",
"description": "Array of service objects with port, product, version (e.g., [{'port': 80, 'product': 'Apache', 'version': '2.2.8'}])",
"description": "Array of service objects with port, product, version",
"items": {
"type": "object",
"properties": {
"port": {"type": "integer"},
"product": {"type": "string"},
"version": {"type": "string"},
},
},
},
"technologies": {
"type": "array",
"description": "Array of technology objects with name, version (e.g., [{'name': 'PHP', 'version': '5.2.4'}])",
"description": "Array of technology objects with name, version",
"items": {
"type": "object",
"properties": {
"name": {"type": "string"},
"version": {"type": "string"},
},
},
},
"endpoints": {
"type": "array",
"description": "Array of endpoint objects with path, methods (e.g., [{'path': '/admin', 'methods': ['GET', 'POST']}])",
"description": "Array of endpoint objects with path, methods",
"items": {
"type": "object",
"properties": {
"path": {"type": "string"},
"methods": {
"type": "array",
"items": {"type": "string"},
},
},
},
},
"weaknesses": {
"type": "array",
"description": "Array of weakness objects for WG stage (e.g., [{'id': 'CVE-2024-1234', 'description': '...'}])",
"description": "Array of weakness objects for WG stage",
"items": {
"type": "object",
"properties": {
"id": {"type": "string"},
"description": {"type": "string"},
},
},
},
"affected_versions": {
"type": "object",