-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
backendRelated to the in-memory data model/storeRelated to the in-memory data model/storedfnDFN specification-relatedDFN specification-relatedmetaPlanning, strategy, developer tooling, etcPlanning, strategy, developer tooling, etcrequirementCore requirementCore requirement
Milestone
Description
As @mwtoews has suggested we can use JSON schema for the DFN specifications (also forthcoming MF6 NetCDF spec and any other schema-related needs). A big benefit of pydantic is built-in JSON schema support . If we continue using attrs we will have to roll our own schema generation.
I think it would be a pretty clean migration from attrs to plain dataclasses. We don't have much structural validation implemented at the moment, so it should be straightforward to start using pydantic's dataclass support for that. But migrating cattrs to pydantic might be more of a chore since we have built some things around the cattrs.Converter.
This came up in recent discussions with @mjreno in the context of an MF6 NetCDF specification and related tooling.
Metadata
Metadata
Assignees
Labels
backendRelated to the in-memory data model/storeRelated to the in-memory data model/storedfnDFN specification-relatedDFN specification-relatedmetaPlanning, strategy, developer tooling, etcPlanning, strategy, developer tooling, etcrequirementCore requirementCore requirement