We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2e86eb commit 79a7ce8Copy full SHA for 79a7ce8
cppython/test/schema.py
@@ -2,7 +2,7 @@
2
3
from typing import Annotated
4
5
-from pydantic import Field
+from pydantic import DirectoryPath, Field
6
7
from cppython.core.schema import CPPythonModel
8
@@ -11,6 +11,10 @@ class Variant[T: CPPythonModel](CPPythonModel):
11
"""A configuration variant for a schema type"""
12
13
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
18
19
20
class Variants[T: CPPythonModel](CPPythonModel):
0 commit comments