Skip to content

Commit 79a7ce8

Browse files
committed
Update schema.py
1 parent f2e86eb commit 79a7ce8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cppython/test/schema.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from typing import Annotated
44

5-
from pydantic import Field
5+
from pydantic import DirectoryPath, Field
66

77
from cppython.core.schema import CPPythonModel
88

@@ -11,6 +11,10 @@ class Variant[T: CPPythonModel](CPPythonModel):
1111
"""A configuration variant for a schema type"""
1212

1313
configuration: Annotated[T, Field(description='The configuration data')]
14+
directory: Annotated[
15+
DirectoryPath | None,
16+
Field(description='The directory to mount alongside the configuration. `tests/build/<directory>`'),
17+
] = None
1418

1519

1620
class Variants[T: CPPythonModel](CPPythonModel):

0 commit comments

Comments
 (0)