AllenNeuralDynamics / AllenNeuralDynamics/Aind.Behavior.Services

Consider using validated data in default_factory fields

Open
#225 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

https://pydantic.dev/docs/validation/latest/api/pydantic/fields/#pydantic.fields.FieldInfo.default_factory

We should attempt to use this for generate fields like the session id automatically. We should check how this behaves with the json-schema generation tho.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.