Azure / Azure/azure-rest-api-specs
`cost-management` - missing enum value `TheLast7Days` for `timeframe` in `/exports`
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 5.9k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 424
Description
Message from REST API when using a unexpected value:
Request properties validation failed: Invalid definition timeframe: '...'; valid values: 'WeekToDate', 'MonthToDate', 'TheLastMonth', 'BillingMonthToDate', 'TheLastBillingMonth', '**TheLast7Days**', 'Custom'.
`TheLast7Days` could be used in the PUT request, however it is missing in the swagger definition:
https://github.com/Azure/azure-rest-api-specs/blob/b0fe1805a7e541e4d0252c01e919f0f20721b270/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/costmanagement.exports.json#L599-L609
url: "/{scope}/providers/Microsoft.CostManagement/exports/{exportName}"
Contributor guide
Research direction
Open specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/costmanagement.exports.json around lines 599-609 and inspect the timeframe enum for the /{scope}/providers/Microsoft.CostManagement/exports/{exportName} operation. Confirm the REST API's accepted values, then ensure TheLast7Days is represented in the Swagger definition; done means the specification lists that value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- openapi
- Domain
- api, cloud
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 58/100