Azure / Azure/azure-rest-api-specs
`Site Recovery`: `ReplicationProtectionContainerMappings_Create` for HyperV container mapping requires an empty `instanceType` in `providerSpecificInput`
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 5.9k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 444
Description
swagger link: https://github.com/Azure/azure-rest-api-specs/blob/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/service.json#L4665
There is no definition for HyperV type (or empty type) `ReplicationProviderSpecificContainerMappingInput`, but when calling this API, if we do not pass `providerSpecificInput`, it will return an error. Please add an empty definition for it by adding an object with `x-ms-discriminator-value`, or remove the requirenment on service.
Contributor guide
Research direction
Open specification/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/service.json around line 4665 and inspect ReplicationProtectionContainerMappings_Create and its providerSpecificInput definitions. Compare the HyperV mapping requirements with the service behavior described in the issue, then validate whether an empty discriminator definition or removal of the requirement is consistent with the specification.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- openapi
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100