-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Fix Swagger Correctness and Linting Issues for Microsoft.AAD/DomainServices #11994
Conversation
Update to use 2020-01 as the default package
Update default values for ldapsSetting and domainSecurity
Update default values for domainSecurity and ldapsSettings
Add type and format for Version property
Add type and format for Version property
Swagger Generation Artifacts
|
Hi @jihochang, one or multiple breaking change(s) is detected in your PR. Please check out the breaking change(s), and provide business justification in the PR comment and @ PR assignee why you must have these change(s), and how external customer impact can be mitigated. Please ensure to follow breaking change policy to request breaking change review and approval before proceeding swagger PR review. |
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.
Little concern when authoring CLI
Shall migrationProperties
under domainserviceProperties
be marked as read-only?
definition code:
"DomainServiceProperties": {
"description": "Properties of the Domain Service.",
"properties": {
...
"migrationProperties": {
"$ref": "#/definitions/MigrationProperties",
"description": "Migration Properties"
},
...
}
},
...
"MigrationProperties": {
"description": "Migration Properties",
"properties": {
"oldSubnetId": {
"type": "string",
"description": "Old Subnet Id"
},
"oldVnetSiteId": {
"type": "string",
"description": "Old Vnet Site Id"
},
"migrationProgress": {
"$ref": "#/definitions/MigrationProgress",
"description": "Migration Progress"
}
}
},
"MigrationProgress": {
"description": "Migration Progress",
"properties": {
"completionPercentage": {
"type": "number",
"format": "double",
"description": "Completion Percentage"
},
"progressMessage": {
"type": "string",
"description": "Progress Message"
}
}
},
It seems not some property which can be set or modified by any PUT operation.
Both of these are not readonly properties. |
I think migrationProperties should be marked as readonly. Let me make that change here. |
@jihochang |
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.
Some other concerns:
- Shall
etag
property underResource
be readOnly? It seems operation time returned from server. - Do
sku
property underDomainServiceProperties
have some allowed values? Shall we add an enum list for it? Same question fordomainConfigurationType
underDomainServiceProperties
- Is
resourceForset
property underResourceForestSettings
name or type? Is there any enum values for it if it means resource forest type?
@weidongxu-microsoft Could we get this PR merged? Additional requests by @evelyn-ys will be in a separate PR. |
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.
After discussion offline, enum definition will be updated in next version.
…rvices (Azure#11994) * Update readme.md Update to use 2020-01 as the default package * Update domainservices.json Update default values for ldapsSetting and domainSecurity * Update domainservices.json Update default values for domainSecurity and ldapsSettings * Update domainservices.json Add type and format for Version property * Update domainservices.json Add type and format for Version property * Mark MigrationProperties as readonly * Update MigrationProperties as readonly
…rvices (Azure#11994) * Update readme.md Update to use 2020-01 as the default package * Update domainservices.json Update default values for ldapsSetting and domainSecurity * Update domainservices.json Update default values for domainSecurity and ldapsSettings * Update domainservices.json Add type and format for Version property * Update domainservices.json Add type and format for Version property * Mark MigrationProperties as readonly * Update MigrationProperties as readonly
@evelyn-ys it doesn't seem that there was ever a follow up PR to fix the |
MSFT employees can try out our new experience at OpenAPI Hub - one location for using our validation tools and finding your workflow.
Changelog
Please ensure to add changelog with this PR by answering the following questions.
Contribution checklist:
If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist
Ensure to check this box if one of the following scenarios meet updates in the PR, so that label “WaitForARMFeedback” will be added automatically to involve ARM API Review. Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs, all “removals” and “adding a new property” no more require ARM API review.
Please ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.
If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
Breaking Change Review Checklist
If there are following updates in the PR, ensure to request an approval from API Review Board as defined in the Breaking Change Policy.
Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.
Please follow the link to find more details on PR review process.