Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: refactor resources/data to use the new serialization/deserializ… #391

Merged
merged 2 commits into from
May 22, 2022

Conversation

TomerHeber
Copy link
Collaborator

…ation logic

Solution

Some minor refactoring.

Part of a larger effort #376.

Copy link
Contributor

@yaronya yaronya left a comment

Choose a reason for hiding this comment

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

LGTM
Left one question tho, please attend 🙏

Type: schema.TypeString,
Description: "id of the project",
Required: true,
ValidateDiagFunc: ValidateNotEmptyString,
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really need to have this validation func when attribute is Required?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

So yeah... a weird thing...
It seems project_id = "" will path the required validation.
I was surprised as well...

@github-actions github-actions bot added ready to merge PR approved - can be merged once the PR owner is ready and removed pending final review labels May 22, 2022
@TomerHeber TomerHeber merged commit 1db8c6b into main May 22, 2022
@TomerHeber TomerHeber deleted the feat-refactor-serialization-2-#376 branch May 22, 2022 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature provider ready to merge PR approved - can be merged once the PR owner is ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants