Skip to content
This repository has been archived by the owner on Mar 20, 2022. It is now read-only.

Allow EntitySchema-specific assignEntity fns #104

Closed
wants to merge 2 commits into from

Conversation

paularmstrong
Copy link
Owner

@paularmstrong paularmstrong commented May 11, 2016

This allows custom assignEntity functions on EntitySchemas.

Problem:

When dealing with many endpoints and normalizing across a lot of different schema, a single assignEntity function needs too many checks to determine whether it should have different behavior for particular keys. Often times, multiple schema will have the same keys but not need to be assigned the same way.

Solution:

Add an assignEntity option to Schema/EntitySchema that runs after the main assignEntity option passed to normalize.

Alternative to #97

Signed-off-by: Paul Armstrong <paul@spaceyak.com>
@paularmstrong
Copy link
Owner Author

Merged manually.

@paularmstrong paularmstrong deleted the feature/schema-assignEntity branch May 12, 2016 17:55
@lock
Copy link

lock bot commented May 7, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot added the Outdated label May 7, 2018
@lock lock bot locked as resolved and limited conversation to collaborators May 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
1 participant