llama-stack-mirror/scripts/pydantic-diff.py
Charlie Doern e408fd3421 feat(api): ensure StackRunConfig
StackRunConfig is part of our public API, ensure stability of this datatype using a pytest snapshot test.

If the pydantic model changes, it will fail.

Signed-off-by: Charlie Doern <cdoern@redhat.com>
2025-10-03 09:44:23 -04:00

14 lines
470 B
Python

# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.
from llama_stack.core.datatypes import StackRunConfig
def test_build_config_v1_schema_is_unchanged(snapshot):
"""
Ensures the V1 schema never changes.
"""
snapshot.assert_match(StackRunConfig.model_json_schema(), "stored_build_config_v1_schema.json")