Pydantic schemas for sandbox creation, update, and listing API requests.
# Source: https://github.com/Observal/Observal | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
# SPDX-FileCopyrightText: 2026 Hari Srinivasan <harisrini21@gmail.com>
# SPDX-FileCopyrightText: 2026 Shaan Narendran <shaannaren06@gmail.com>
# SPDX-License-Identifier: Apache-2.0
import re
import uuid
from datetime import datetime
from pydantic import BaseModel, field_validator, model_validator
from models.mcp import ListingStatus
from schemas.constants import (
VALID_SANDBOX_NETWORK_POLICIES,
VALID_SANDBOX_RUNTIME_TYPES,
RecommendedFlag,
Visibility,
make_harness_list_validator,
make_option_validator,
)
from schemas.fork import ForkProvenance
_REF_RE = re.com
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key