Files
FreeCADWasmDev/docs/p6/inspection-action-03-facade.schema.json
wangdequan 9a7c4f0335 Save FreeCAD Web workspace sources and user validation evidence
IFC native binding remains incomplete; preserve accurate test results.
2026-09-15 22:01:58 +08:00

56 lines
2.4 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://freecad.org/schemas/freecad-web-inspection-python-api-v1.json",
"title": "FreeCAD Web Inspection Python API request/response",
"type": "object",
"required": ["$defs"],
"$defs": {
"request": {
"type": "object",
"required": ["schema", "version", "kind", "requestId", "command", "payload"],
"properties": {
"schema": { "const": "freecad-web-facade/v1" },
"version": { "const": 1 },
"kind": { "const": "request" },
"requestId": { "type": "string", "minLength": 1 },
"command": { "const": "inspection.inspectPythonApi" },
"payload": { "$ref": "#/$defs/payload" }
},
"additionalProperties": false
},
"payload": {
"type": "object",
"required": ["schema", "module", "action", "sourceRevision", "entry", "readOnly"],
"properties": {
"schema": { "const": "freecad-web-inspection/python-api/v1" },
"module": { "const": "Inspection" },
"action": { "const": "python-api" },
"sourceRevision": { "type": "string", "minLength": 1 },
"entry": { "const": "src/Mod/Inspection/App/AppInspection.cpp" },
"readOnly": { "const": true }
},
"additionalProperties": false
},
"result": {
"type": "object",
"required": ["schema", "module", "action", "sourceRevision", "currentSourceRevision", "sourceEntry", "apiCount", "apiNames", "guiExcluded", "readOnly", "moduleHandleAfterRelease", "documentMutation", "stateSha256"],
"properties": {
"schema": { "const": "freecad-web-inspection/python-api/v1" },
"module": { "const": "Inspection" },
"action": { "const": "python-api" },
"sourceRevision": { "type": "string", "minLength": 1 },
"currentSourceRevision": { "const": "4f4e9244e613ea2df06e70027074a562695048cb" },
"sourceEntry": { "const": "src/Mod/Inspection/App/AppInspection.cpp" },
"apiCount": { "const": 3 },
"apiNames": { "const": ["Inspection::PropertyDistanceList", "Inspection::Feature", "Inspection::Group"] },
"guiExcluded": { "const": ["InspectionGui", "FreeCADGui", "PySide", "pivy.coin"] },
"readOnly": { "const": true },
"moduleHandleAfterRelease": { "const": 0 },
"documentMutation": { "const": false },
"stateSha256": { "type": "string", "minLength": 1 }
},
"additionalProperties": false
}
}
}