MCPcopy
hub / github.com/sparckles/Robyn / test_schema_literal

Function test_schema_literal

unit_tests/test_openapi_consolidated.py:69–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67
68
69def test_schema_literal():
70 api = OpenAPI()
71 schema = api.get_schema_object("mode", typing.Literal["a", "b", "c"])
72 assert schema["enum"] == ["a", "b", "c"]
73 assert schema["type"] == "string"
74
75
76def test_schema_typed_dict_value():

Callers

nothing calls this directly

Calls 2

get_schema_objectMethod · 0.95
OpenAPIClass · 0.90

Tested by

no test coverage detected