Make Pydantic models more idiomatic
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
### What needs to get done
The current pydantic models have run through several pydantic updates and could use some updates to make them more idiomatic and work more nicely with generating JSON schemas.
Relevant updates include:
- https://github.com/canonical/craft-archives/pull/103/files#r1626427344
- https://github.com/canonical/craft-archives/pull/103/files#r1610575091
- https://github.com/canonical/craft-archives/pull/103/files#r1610576846
### Why it needs to get done
Automatic generation of JSON schemas and efficiency with pydantic 2
Evaluation history
No evaluation history available.