You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's covjson-pydantic which uses pydantic to represent CovJSON's schema. pydantic allows including custom validation code and also supports exporting to JSON Schema. There may be an opportunity here to collaborate with covjson-pydantic such that the existing JSON Schema files are replaced by a dependency to that package and all further validation logic that can't be expressed in JSON Schema alone would go into that package.
Some unknows:
How much validation logic is supposed to be included in pydantic models? Since using it in servers (with FastAPI) is a main use case it seems like, as much as reasonably possible without affecting performance.
Does pydantic support all the constructs that are used in the current CovJSON schemas? My feeling is no, but listing them individually would help.
There's covjson-pydantic which uses pydantic to represent CovJSON's schema. pydantic allows including custom validation code and also supports exporting to JSON Schema. There may be an opportunity here to collaborate with covjson-pydantic such that the existing JSON Schema files are replaced by a dependency to that package and all further validation logic that can't be expressed in JSON Schema alone would go into that package.
Some unknows:
cc @PaulVanSchayck
The text was updated successfully, but these errors were encountered: