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

adds stack as alias for stack_type, deny_unknown_fields #601

Merged
merged 2 commits into from
Mar 4, 2024
Merged

Conversation

shahadarsh
Copy link
Collaborator

  • stack as alias for stack_type
  • shows below error for unknown field:
    Screenshot 2024-03-03 at 8 26 36 PM

@shahadarsh shahadarsh changed the title stack as alias for stack_type, deny_unknown_fields adds stack as alias for stack_type, deny_unknown_fields Mar 4, 2024
Copy link
Contributor

@sjmiller609 sjmiller609 left a comment

Choose a reason for hiding this comment

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

Thank you!

@@ -34,7 +34,7 @@ pub struct MetricsResponse {

#[derive(Serialize, Deserialize, Debug)]
pub struct MetricsData {
pub resultType: String,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this change effects parsing, so please check still works and maybe can add a test for tembo top in the test against cloud. To fix the lint issue, it’s possible to use serde macros to parse the value as something different than the variable name.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh yes.. I'm gonna revert the change.

tembo-cli/src/cmd/validate.rs Show resolved Hide resolved
@shahadarsh shahadarsh merged commit be0be42 into main Mar 4, 2024
7 checks passed
@shahadarsh shahadarsh deleted the stack_type branch March 4, 2024 01:42
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