Skip to content

feature-attribute-nesting#80

Merged
davemoore- merged 3 commits intomainfrom
feature-attribute-nesting
Feb 21, 2021
Merged

feature-attribute-nesting#80
davemoore- merged 3 commits intomainfrom
feature-attribute-nesting

Conversation

@davemoore-
Copy link
Copy Markdown
Member

@davemoore- davemoore- commented Feb 21, 2021

The Job class now structures the "_attributes" object of the response by splitting the attribute names by periods and nesting them. For example, an attribute named "location.address.street" becomes structured as { "location": { "address": { "street": [ VALUE, ... ] }}} in the "_attributes" object. The Model class validates that the names of attributes do not override one another. Example: A model with attributes "name.first" and "name.last" is valid, but a model with attributes "name" and "name.first" is invalid because "name.first" will override "name" in the "_attributes" section of the resolution response.

Closes #77

… by splitting the attribute names by periods and nesting them. For example, an attribute named "location.address.street" becomes structured as { "location": { "address": { "street": [ VALUE, ... ] }}} in the "_attributes" object.
…rride one another. Example: A model with attributes "name.first" and "name.last" is valid, but a model with attributes "name" and "name.first" is invalid because "name.first" will override "name" in the "_attributes" section of the resolution response.
@davemoore- davemoore- merged commit f73ac7d into main Feb 21, 2021
@davemoore- davemoore- mentioned this pull request Feb 21, 2021
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow attributes to be represented as nested fields

1 participant