Azure / Azure/azure-rest-api-specs
Required properties on StaticSites_CreateOrUpdateStaticSite are missing
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 5.9k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 444
Description
According to Swagger, https://github.com/Azure/azure-rest-api-specs/blob/main/specification/web/resource-manager/Microsoft.Web/stable/2020-12-01/StaticSites.json#L200, only resource name, resource group name, subscription id, and location are mandatory for `StaticSites_CreateOrUpdateStaticSite`. But we found it requires more. The issue comes from https://github.com/Azure/azure-powershell/issues/16594
No required attribute is defined on `StaticSite` https://github.com/Azure/azure-rest-api-specs/blob/ea0f7b072ad3aaff203ea9003246b9e584b819ff/specification/web/resource-manager/Microsoft.Web/stable/2020-12-01/StaticSites.json#L2812.
Contributor guide
Research direction
Start with specification/web/resource-manager/Microsoft.Web/stable/2020-12-01/StaticSites.json, inspecting the StaticSites_CreateOrUpdateStaticSite operation near line 200 and the StaticSite definition near line 2812. Review the linked Azure PowerShell issue to determine which properties are actually required; the specification is complete when those requirements are represented consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, openapi
- Domain
- api, cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100