Skip to content

Commit

Permalink
Merge branch 'staging' into update-vrs
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Aug 5, 2024
2 parents e5e3e7a + c00194f commit 488f25c
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions server/src/curfu/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@
TranscriptSegmentElement,
UnknownGeneElement,
)
from pydantic import BaseModel, Field, StrictInt, StrictStr, field_validator
from pydantic import (
BaseModel,
ConfigDict,
Field,
StrictInt,
StrictStr,
field_validator,
)

ResponseWarnings = list[StrictStr] | None

Expand Down Expand Up @@ -92,10 +99,7 @@ class ClientFunctionalDomain(FunctionalDomain):

domainId: str

class Config:
"""Configure class."""

extra = "forbid"
model_config = ConfigDict(extra="forbid")


class ClientRegulatoryElement(RegulatoryElement, ClientStructuralElement):
Expand All @@ -110,10 +114,7 @@ class Response(BaseModel):

warnings: ResponseWarnings | None = None

class Config:
"""Configure class"""

extra = "forbid"
model_config = ConfigDict(extra="forbid")


class GeneElementResponse(Response):
Expand Down

0 comments on commit 488f25c

Please sign in to comment.