Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Add a new kind of alert rules - NRT #15980
Add a new kind of alert rules - NRT #15980
Changes from 7 commits
4f55ee6
1d35865
6999abd
5b39876
75289e3
3a43573
8fbd8e7
f66c4e9
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These kind of unnamed schema and multiple "allOf" section nested multiple layers usually not working well with SDK. If you don't need the SDK then they are fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@weidongxu-microsoft ,
As far as we understood, these multiple "allOf"s in the properties object do not create inheritance but union of those properties. The purpose is to avoid code duplication(instead of duplicate those common fields in several places).
We've generated C# classes and it looks fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this particular case,
x-ms-client-flatten
flatten all these hierarchies into the flat properties withinScheduledAlertRuleTemplate
, so you are probably safe. But in other case you are likely getting meaningless class name or breaking changes on class name in future.This is a suggestion. You are OK to ignore, as your are in preview version anyway.