Azure / Azure/azure-rest-api-specs

`Microsoft.Chaos/targets` lacks implementation of `properties` or a discriminator

Open
#17,392 1 comment 0 reactions 1 assignee View on GitHub

@mariohdez is already working on this.

Since Jan 24, 2022.

customer-reported question Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
6k
Avg merge
2d 21h
Merged PRs (30d)
432

Description

Hi there!

I was trying to implement Chaos Targets (and other resources of the Chaos Studio) in azurerm, the Terraform Provider for Azure. This implementation would be based on the exposed REST API for Chaos Studio, 2021-09-15-preview. As I as looking into it, I found the specs miss a proper definition of the properties of a Target. I was looking into providing a PR myself with an update, but I found myself stranded based on lacking discriminator fields to distinguish the different types of targets.

For the different kind of targets (service-direct and agent-based) the properties are defined a object and no possible discriminator field is available to improve the API specs.

Any updates or new API versions would be great, as implementation in Terraform without proper API specs is a no-go unfortunately :/

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.