mirror of
https://github.com/ivan-usov-org/bec.git
synced 2025-04-19 17:30:02 +02:00
fix: docstrings in metadata schema class and template
This commit is contained in:
parent
2ba5cfcca5
commit
7efdbbf6d4
@ -13,9 +13,9 @@ _METADATA_SCHEMA_REGISTRY = {}
|
||||
|
||||
|
||||
class BasicScanMetadata(BaseModel):
|
||||
"""Scan metadata base class which behaves like a dict, and will accept any keys,
|
||||
like the existing metadata field in messages, but can be extended to add required
|
||||
fields for specific scans."""
|
||||
"""Basic scan metadata class. Only requires a sample name. Accepts any additional
|
||||
metadata that the user wishes to provide. Can be extended to add required fields
|
||||
for specific scans."""
|
||||
|
||||
model_config = ConfigDict(extra="allow", validate_assignment=True)
|
||||
sample_name: str = Field(
|
||||
|
@ -1,4 +1,4 @@
|
||||
# from .schema_template import ExampleSchema
|
||||
# from .metadata_schema_template import ExampleSchema
|
||||
|
||||
METADATA_SCHEMA_REGISTRY = {
|
||||
# Add models which should be used to validate scan metadata here.
|
||||
|
Loading…
x
Reference in New Issue
Block a user