CyberSecurity_OWASP / fixture_generator.py
Humanlearning's picture
Upload CyberSecurity_OWASP environment
aeba3f1 verified
raw
history blame contribute delete
537 Bytes
"""Fixture helpers for scenario compilers."""
from __future__ import annotations
from typing import Any
def visible_workspace_summary(files: list[str], public_hint: dict[str, Any]) -> dict[str, Any]:
return {
"framework": "fastapi_style_python",
"editable_files": files,
"routes": [
{"method": "GET", "path": "/health", "public": True},
{"method": "GET", "path": "/invoices/{invoice_id}", "public": False},
],
"domain": public_hint.get("domain", "invoices"),
}