Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Convert from using apischema to pydantic #54

Closed
wants to merge 1 commit into from

Conversation

callumforrester
Copy link
Contributor

Closes #52

  • Remove apischema as a dependency and use pydantic instead
  • Use pydantic.dataclasses.dataclass instead of dataclasses.dataclass

"then the end and start of consecutive iterations of Spec will have no gap"
),
] = True
num: int = Field(min=1, description="Number of frames to produce")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we create Field instances up front and use them in two separate dataclasses?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably, but there have been issues with doing so in the past (pydantic/pydantic#1412), so I wanted to get this working without first of all.

@callumforrester
Copy link
Contributor Author

Will close in favour of #56 when discussions here resolved.

@callumforrester
Copy link
Contributor Author

Superseded by #56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use pydantic instead of apischema
2 participants