Skip to content
This repository was archived by the owner on May 6, 2026. It is now read-only.

Fix #273 : Local Structured Property population via .populate(**kwargs) - #274

Merged
cguardia merged 5 commits into
googleapis:masterfrom
jwaltgrant:master
Dec 31, 2019
Merged

Fix #273 : Local Structured Property population via .populate(**kwargs)#274
cguardia merged 5 commits into
googleapis:masterfrom
jwaltgrant:master

Conversation

@jwaltgrant

Copy link
Copy Markdown
Contributor

If LocalStructureProperty contains other Structured/LocalStructured Properties, the created model must be returned from the _validate(self, value) function.

This mirrors exactly how this is done in StructuredProperty._validate()

jwaltgrantand others added 2 commits December 12, 2019 14:26
-Return the created model during validation (giving identical functionality to that of StructuredProperty)
@googlebotgooglebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 12, 2019
@jwaltgrantjwaltgrant changed the title Return created model from LocalStructureProperty._validate()Fix #273Dec 12, 2019
@jwaltgrantjwaltgrant changed the title Fix #273Fix #273 : Local Structured Property population via .populate(**kwargs)Dec 12, 2019
@cguardia
cguardia self-requested a review December 31, 2019 03:24

@cguardiacguardia left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@cguardiacguardia added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 31, 2019
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 31, 2019
@cguardiacguardia added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 31, 2019
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 31, 2019
@cguardiacguardia added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 31, 2019
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 31, 2019
@cguardia

Copy link
Copy Markdown
Contributor

Thanks!

Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yesThis human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@jwaltgrant@cguardia@googlebot@yoshi-kokoro