@@ -38,6 +38,40 @@ input-file:
38
38
- preview/2021-10-20-preview2/communicationservicejobrouter.json
39
39
title:
40
40
Azure Communication Services
41
+ directive:
42
+ # Set reference to WorkerSelectorAttachment in ClassificationPolicy
43
+ - from: swagger-document
44
+ where: "$.definitions.ClassificationPolicy.properties.workerSelectors.items"
45
+ transform: >
46
+ $["$ref"] = "#/definitions/WorkerSelectorAttachment";
47
+ # Set reference to QueueSelectorAttachment in ClassificationPolicy
48
+ - from: swagger-document
49
+ where: "$.definitions.ClassificationPolicy.properties.queueSelectors.items"
50
+ transform: >
51
+ $["$ref"] = "#/definitions/QueueSelectorAttachment";
52
+ # Set reference to WorkerSelectorAttachment in PagedClassificationPolicy
53
+ - from: swagger-document
54
+ where: "$.definitions.PagedClassificationPolicy.properties.workerSelectors.items"
55
+ transform: >
56
+ $["$ref"] = "#/definitions/WorkerSelectorAttachment";
57
+ # Set reference to QueueSelectorAttachment in PagedClassificationPolicy
58
+ - from: swagger-document
59
+ where: "$.definitions.PagedClassificationPolicy.properties.queueSelectors.items"
60
+ transform: >
61
+ $["$ref"] = "#/definitions/QueueSelectorAttachment";
62
+
63
+ # Set reference to ExceptionAction in ExceptionRule
64
+ - from: swagger-document
65
+ where: "$.definitions.ExceptionRule.properties.actions"
66
+ transform: >
67
+ $.type = "object";
68
+ $.additionalProperties["$ref"] = "#/definitions/ExceptionAction";
69
+
70
+ # Rename CommunicationError to JobRouterError
71
+ - from: swagger-document
72
+ where: '$.definitions.CommunicationError'
73
+ transform: >
74
+ $["x-ms-client-name"] = "JobRouterError";
41
75
` ` `
42
76
43
77
---
0 commit comments