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

Send connection profile config as json and validate it #269

Merged
merged 1 commit into from Aug 24, 2023

Conversation

jbeisen
Copy link
Collaborator

@jbeisen jbeisen commented Aug 23, 2023

No description provided.

@jbeisen jbeisen force-pushed the fix-connection-profile-config branch from 33f5dad to 005953f Compare August 23, 2023 22:43
@jbeisen jbeisen changed the title Send connection profile config as json Send connection profile config as json and validate it Aug 23, 2023
@jbeisen jbeisen force-pushed the fix-connection-profile-config branch from 005953f to 04fae1b Compare August 23, 2023 22:54
@@ -178,7 +178,8 @@ impl<C: Connector> ErasedConnector for C {
Ok(self.config_description(self.parse_config(s)?))
}

fn validate_config(&self, _: &serde_json::Value) -> Result<(), serde_json::Error> {
fn validate_config(&self, config: &serde_json::Value) -> Result<(), serde_json::Error> {
self.parse_config(config)?;
Copy link
Member

Choose a reason for hiding this comment

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

This change needs to be made for validate_table as well — looks like we lost the validation logic in the refactor

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Right, done.

@jbeisen jbeisen force-pushed the fix-connection-profile-config branch from 04fae1b to c05fde5 Compare August 24, 2023 00:27
@jbeisen jbeisen merged commit dd4977b into master Aug 24, 2023
4 checks passed
@jbeisen jbeisen deleted the fix-connection-profile-config branch August 24, 2023 03:33
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.

None yet

2 participants