Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Upgrade: __root__ -> RootModel
  • Loading branch information
olp-cs committed Aug 12, 2024
commit 43043d29eb601c218ad250141f48c9a0e839d068
6 changes: 3 additions & 3 deletions src/harmony/schemas/responses/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

from harmony.schemas.requests.text import Instrument
from harmony.schemas.requests.text import Question
from pydantic import BaseModel, Field
from pydantic import BaseModel, Field, RootModel


class MatchResponse(BaseModel):
Expand All @@ -42,8 +42,8 @@ class MatchResponse(BaseModel):
)


class InstrumentList(BaseModel):
__root__: List[Instrument]
class InstrumentList(RootModel):
root: List[Instrument]


class CacheResponse(BaseModel):
Expand Down