Skip to content

Commit

Permalink
Format _operation_v1.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Konrad Jałowiecki committed Mar 11, 2024
1 parent 164adc8 commit 334485b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hqar/_operation_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from pydantic import BaseModel, ConfigDict, Field, StringConstraints
from pydantic.json_schema import GenerateJsonSchema


NAME_PATTERN = "[A-Za-z_][A-Za-z0-9_]*"
NAMESPACED_NAME_PATTERN = rf"{NAME_PATTERN}\.{NAME_PATTERN}"

Expand Down Expand Up @@ -65,6 +64,7 @@ class OperationV1(BaseModel):
This is NOT a top-level object in the schema. Instead, OperationV1 is wrapped in
DocumentRootV1.
"""

name: Name
children: list[OperationV1] = Field(default_factory=list)
type: Optional[str] = None
Expand All @@ -84,6 +84,7 @@ def __init__(self, **data: Any):

class DocumentRootV1(BaseModel):
"""Root object in Operation schema V1."""

version: Literal["v1"]
operation: OperationV1

Expand Down

0 comments on commit 334485b

Please sign in to comment.