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
The current validation scheme actually does two jobs:
"reconstituting" a model from a "lesser" state
"lesser" meaning plain JSON, a database representation, etc
converts JS primitives into Dandi types (e.g. Uuid, Url, etc)
converts complex objects into classes as determined by decorator
The goals of this change are:
decouple the "reconstitution" step from the validation
support for alternate discovery of property values (e.g. getting embedded values from HAL resources from the _embedded property)
This most likely means moving the "reconstitution" logic into @dandi/model, which will not be a problem after #12. Alternatively, use a new package (e.g. @dandi/model-builder)
The text was updated successfully, but these errors were encountered:
The current validation scheme actually does two jobs:
The goals of this change are:
This most likely means moving the "reconstitution" logic into
@dandi/model
, which will not be a problem after #12. Alternatively, use a new package (e.g.@dandi/model-builder
)The text was updated successfully, but these errors were encountered: