@azure-tools/typespec-azure-resource-manager 0.63.0 → 0.64.0-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- import type { DecoratorContext, Enum, EnumValue, Model, ModelProperty, Union } from "@typespec/compiler";
1
+ import type { DecoratorContext, DecoratorValidatorCallbacks, Enum, EnumValue, Model, ModelProperty, Union } from "@typespec/compiler";
2
2
  /**
3
3
  * Marks an enum as representing the valid `common-types` versions.
4
4
  */
5
- export type ArmCommonTypesVersionsDecorator = (context: DecoratorContext, target: Enum) => void;
5
+ export type ArmCommonTypesVersionsDecorator = (context: DecoratorContext, target: Enum) => DecoratorValidatorCallbacks | void;
6
6
  /**
7
7
  *
8
8
  *
@@ -14,11 +14,11 @@ export type ArmCommonTypesVersionsDecorator = (context: DecoratorContext, target
14
14
  export type ArmCommonParameterDecorator = (context: DecoratorContext, target: ModelProperty, definitionName?: string, version?: EnumValue | {
15
15
  readonly version: string | EnumValue;
16
16
  readonly isDefault: boolean;
17
- } | string, referenceFile?: string) => void;
17
+ } | string, referenceFile?: string) => DecoratorValidatorCallbacks | void;
18
18
  /**
19
19
  * Signifies that a property can be treated as an inline type in emitters
20
20
  */
21
- export type InlineAzureTypeDecorator = (context: DecoratorContext, target: ModelProperty) => void;
21
+ export type InlineAzureTypeDecorator = (context: DecoratorContext, target: ModelProperty) => DecoratorValidatorCallbacks | void;
22
22
  /**
23
23
  *
24
24
  *
@@ -30,7 +30,7 @@ export type InlineAzureTypeDecorator = (context: DecoratorContext, target: Model
30
30
  export type ArmCommonDefinitionDecorator = (context: DecoratorContext, target: Model | Enum | Union, definitionName?: string, version?: EnumValue | {
31
31
  readonly version: string | EnumValue;
32
32
  readonly isDefault: boolean;
33
- } | string, referenceFile?: string) => void;
33
+ } | string, referenceFile?: string) => DecoratorValidatorCallbacks | void;
34
34
  export type AzureResourceManagerCommonTypesPrivateDecorators = {
35
35
  armCommonTypesVersions: ArmCommonTypesVersionsDecorator;
36
36
  armCommonParameter: ArmCommonParameterDecorator;
@@ -1 +1 @@
1
- {"version":3,"file":"Azure.ResourceManager.CommonTypes.Private.d.ts","sourceRoot":"","sources":["../../generated-defs/Azure.ResourceManager.CommonTypes.Private.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,IAAI,EACJ,SAAS,EACT,KAAK,EACL,aAAa,EACb,KAAK,EACN,MAAM,oBAAoB,CAAC;AAE5B;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,IAAI,KAAK,IAAI,CAAC;AAEhG;;;;;;;GAOG;AACH,MAAM,MAAM,2BAA2B,GAAG,CACxC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,aAAa,EACrB,cAAc,CAAC,EAAE,MAAM,EACvB,OAAO,CAAC,EACJ,SAAS,GACT;IACE,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;CAC7B,GACD,MAAM,EACV,aAAa,CAAC,EAAE,MAAM,KACnB,IAAI,CAAC;AAEV;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC;AAElG;;;;;;;GAOG;AACH,MAAM,MAAM,4BAA4B,GAAG,CACzC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,IAAI,GAAG,KAAK,EAC5B,cAAc,CAAC,EAAE,MAAM,EACvB,OAAO,CAAC,EACJ,SAAS,GACT;IACE,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;CAC7B,GACD,MAAM,EACV,aAAa,CAAC,EAAE,MAAM,KACnB,IAAI,CAAC;AAEV,MAAM,MAAM,gDAAgD,GAAG;IAC7D,sBAAsB,EAAE,+BAA+B,CAAC;IACxD,kBAAkB,EAAE,2BAA2B,CAAC;IAChD,eAAe,EAAE,wBAAwB,CAAC;IAC1C,mBAAmB,EAAE,4BAA4B,CAAC;CACnD,CAAC"}
1
+ {"version":3,"file":"Azure.ResourceManager.CommonTypes.Private.d.ts","sourceRoot":"","sources":["../../generated-defs/Azure.ResourceManager.CommonTypes.Private.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,2BAA2B,EAC3B,IAAI,EACJ,SAAS,EACT,KAAK,EACL,aAAa,EACb,KAAK,EACN,MAAM,oBAAoB,CAAC;AAE5B;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG,CAC5C,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,IAAI,KACT,2BAA2B,GAAG,IAAI,CAAC;AAExC;;;;;;;GAOG;AACH,MAAM,MAAM,2BAA2B,GAAG,CACxC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,aAAa,EACrB,cAAc,CAAC,EAAE,MAAM,EACvB,OAAO,CAAC,EACJ,SAAS,GACT;IACE,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;CAC7B,GACD,MAAM,EACV,aAAa,CAAC,EAAE,MAAM,KACnB,2BAA2B,GAAG,IAAI,CAAC;AAExC;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,CACrC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,aAAa,KAClB,2BAA2B,GAAG,IAAI,CAAC;AAExC;;;;;;;GAOG;AACH,MAAM,MAAM,4BAA4B,GAAG,CACzC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,IAAI,GAAG,KAAK,EAC5B,cAAc,CAAC,EAAE,MAAM,EACvB,OAAO,CAAC,EACJ,SAAS,GACT;IACE,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;CAC7B,GACD,MAAM,EACV,aAAa,CAAC,EAAE,MAAM,KACnB,2BAA2B,GAAG,IAAI,CAAC;AAExC,MAAM,MAAM,gDAAgD,GAAG;IAC7D,sBAAsB,EAAE,+BAA+B,CAAC;IACxD,kBAAkB,EAAE,2BAA2B,CAAC;IAChD,eAAe,EAAE,wBAAwB,CAAC;IAC1C,mBAAmB,EAAE,4BAA4B,CAAC;CACnD,CAAC"}
@@ -1,22 +1,22 @@
1
- import type { DecoratorContext, Model } from "@typespec/compiler";
1
+ import type { DecoratorContext, DecoratorValidatorCallbacks, Model } from "@typespec/compiler";
2
2
  /**
3
3
  * `@builtInResource` marks a model as built-in to Azure ResourceManager at the tenant level
4
4
  *
5
5
  * @param target The model that is marked as built-in.
6
6
  */
7
- export type BuiltInResourceDecorator = (context: DecoratorContext, target: Model) => void;
7
+ export type BuiltInResourceDecorator = (context: DecoratorContext, target: Model) => DecoratorValidatorCallbacks | void;
8
8
  /**
9
9
  * `@builtInSubscriptionResource` marks a model as built-in to Azure ResourceManager at the Subscription level
10
10
  *
11
11
  * @param target The model that is marked as built-in.
12
12
  */
13
- export type BuiltInSubscriptionResourceDecorator = (context: DecoratorContext, target: Model) => void;
13
+ export type BuiltInSubscriptionResourceDecorator = (context: DecoratorContext, target: Model) => DecoratorValidatorCallbacks | void;
14
14
  /**
15
15
  * `@builtInResourceGroupResource` marks a model as built-in to Azure ResourceManager at the ResourceGroup level
16
16
  *
17
17
  * @param target The model that is marked as built-in.
18
18
  */
19
- export type BuiltInResourceGroupResourceDecorator = (context: DecoratorContext, target: Model) => void;
19
+ export type BuiltInResourceGroupResourceDecorator = (context: DecoratorContext, target: Model) => DecoratorValidatorCallbacks | void;
20
20
  export type AzureResourceManagerExtensionPrivateDecorators = {
21
21
  builtInResource: BuiltInResourceDecorator;
22
22
  builtInSubscriptionResource: BuiltInSubscriptionResourceDecorator;
@@ -1 +1 @@
1
- {"version":3,"file":"Azure.ResourceManager.Extension.Private.d.ts","sourceRoot":"","sources":["../../generated-defs/Azure.ResourceManager.Extension.Private.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAElE;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,KAAK,IAAI,CAAC;AAE1F;;;;GAIG;AACH,MAAM,MAAM,oCAAoC,GAAG,CACjD,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,KACV,IAAI,CAAC;AAEV;;;;GAIG;AACH,MAAM,MAAM,qCAAqC,GAAG,CAClD,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,KACV,IAAI,CAAC;AAEV,MAAM,MAAM,8CAA8C,GAAG;IAC3D,eAAe,EAAE,wBAAwB,CAAC;IAC1C,2BAA2B,EAAE,oCAAoC,CAAC;IAClE,4BAA4B,EAAE,qCAAqC,CAAC;CACrE,CAAC"}
1
+ {"version":3,"file":"Azure.ResourceManager.Extension.Private.d.ts","sourceRoot":"","sources":["../../generated-defs/Azure.ResourceManager.Extension.Private.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE/F;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,CACrC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,KACV,2BAA2B,GAAG,IAAI,CAAC;AAExC;;;;GAIG;AACH,MAAM,MAAM,oCAAoC,GAAG,CACjD,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,KACV,2BAA2B,GAAG,IAAI,CAAC;AAExC;;;;GAIG;AACH,MAAM,MAAM,qCAAqC,GAAG,CAClD,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,KACV,2BAA2B,GAAG,IAAI,CAAC;AAExC,MAAM,MAAM,8CAA8C,GAAG;IAC3D,eAAe,EAAE,wBAAwB,CAAC;IAC1C,2BAA2B,EAAE,oCAAoC,CAAC;IAClE,4BAA4B,EAAE,qCAAqC,CAAC;CACrE,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { DecoratorContext, Model, ModelProperty, Operation } from "@typespec/compiler";
1
+ import type { DecoratorContext, DecoratorValidatorCallbacks, Model, ModelProperty, Operation } from "@typespec/compiler";
2
2
  export interface CustomResourceOptions {
3
3
  readonly isAzureResource?: boolean;
4
4
  }
@@ -12,13 +12,13 @@ export interface ArmOperationOptions {
12
12
  *
13
13
  * @param options Options for customizing the behavior of the resource
14
14
  */
15
- export type CustomAzureResourceDecorator = (context: DecoratorContext, target: Model, options?: CustomResourceOptions) => void;
15
+ export type CustomAzureResourceDecorator = (context: DecoratorContext, target: Model, options?: CustomResourceOptions) => DecoratorValidatorCallbacks | void;
16
16
  /**
17
17
  * Specify an external reference that should be used when emitting this type.
18
18
  *
19
19
  * @param jsonRef External reference(e.g. "../../common.json#/definitions/Foo")
20
20
  */
21
- export type ExternalTypeRefDecorator = (context: DecoratorContext, entity: Model | ModelProperty, jsonRef: string) => void;
21
+ export type ExternalTypeRefDecorator = (context: DecoratorContext, entity: Model | ModelProperty, jsonRef: string) => DecoratorValidatorCallbacks | void;
22
22
  /**
23
23
  * Signifies that an operation is an Azure Resource Manager operation
24
24
  * and optionally associates the operation with a route template.
@@ -26,13 +26,13 @@ export type ExternalTypeRefDecorator = (context: DecoratorContext, entity: Model
26
26
  * @param target The operation to associate the model with
27
27
  * @param route Optional route to associate with the operation
28
28
  */
29
- export type ArmOperationRouteDecorator = (context: DecoratorContext, target: Operation, route?: ArmOperationOptions) => void;
29
+ export type ArmOperationRouteDecorator = (context: DecoratorContext, target: Operation, route?: ArmOperationOptions) => DecoratorValidatorCallbacks | void;
30
30
  /**
31
31
  * Signifies that a Resource is represented using a library type in generated SDKs.
32
32
  *
33
33
  * @param target The model to that is an external resource
34
34
  */
35
- export type ArmExternalTypeDecorator = (context: DecoratorContext, target: Model) => void;
35
+ export type ArmExternalTypeDecorator = (context: DecoratorContext, target: Model) => DecoratorValidatorCallbacks | void;
36
36
  /**
37
37
  * Renames a path parameter in an Azure Resource Manager operation.
38
38
  *
@@ -40,7 +40,7 @@ export type ArmExternalTypeDecorator = (context: DecoratorContext, target: Model
40
40
  * @param sourceParameterName The name of the parameter to rename
41
41
  * @param targetParameterName The new name for the parameter
42
42
  */
43
- export type RenamePathParameterDecorator = (context: DecoratorContext, target: Operation, sourceParameterName: string, targetParameterName: string) => void;
43
+ export type RenamePathParameterDecorator = (context: DecoratorContext, target: Operation, sourceParameterName: string, targetParameterName: string) => DecoratorValidatorCallbacks | void;
44
44
  export type AzureResourceManagerLegacyDecorators = {
45
45
  customAzureResource: CustomAzureResourceDecorator;
46
46
  externalTypeRef: ExternalTypeRefDecorator;
@@ -1 +1 @@
1
- {"version":3,"file":"Azure.ResourceManager.Legacy.d.ts","sourceRoot":"","sources":["../../generated-defs/Azure.ResourceManager.Legacy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE5F,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;CACpC;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IAClC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;GAKG;AACH,MAAM,MAAM,4BAA4B,GAAG,CACzC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,EACb,OAAO,CAAC,EAAE,qBAAqB,KAC5B,IAAI,CAAC;AAEV;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,CACrC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,aAAa,EAC7B,OAAO,EAAE,MAAM,KACZ,IAAI,CAAC;AAEV;;;;;;GAMG;AACH,MAAM,MAAM,0BAA0B,GAAG,CACvC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,EACjB,KAAK,CAAC,EAAE,mBAAmB,KACxB,IAAI,CAAC;AAEV;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,KAAK,IAAI,CAAC;AAE1F;;;;;;GAMG;AACH,MAAM,MAAM,4BAA4B,GAAG,CACzC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,EACjB,mBAAmB,EAAE,MAAM,EAC3B,mBAAmB,EAAE,MAAM,KACxB,IAAI,CAAC;AAEV,MAAM,MAAM,oCAAoC,GAAG;IACjD,mBAAmB,EAAE,4BAA4B,CAAC;IAClD,eAAe,EAAE,wBAAwB,CAAC;IAC1C,iBAAiB,EAAE,0BAA0B,CAAC;IAC9C,eAAe,EAAE,wBAAwB,CAAC;IAC1C,mBAAmB,EAAE,4BAA4B,CAAC;CACnD,CAAC"}
1
+ {"version":3,"file":"Azure.ResourceManager.Legacy.d.ts","sourceRoot":"","sources":["../../generated-defs/Azure.ResourceManager.Legacy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,2BAA2B,EAC3B,KAAK,EACL,aAAa,EACb,SAAS,EACV,MAAM,oBAAoB,CAAC;AAE5B,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;CACpC;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IAClC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;GAKG;AACH,MAAM,MAAM,4BAA4B,GAAG,CACzC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,EACb,OAAO,CAAC,EAAE,qBAAqB,KAC5B,2BAA2B,GAAG,IAAI,CAAC;AAExC;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,CACrC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,aAAa,EAC7B,OAAO,EAAE,MAAM,KACZ,2BAA2B,GAAG,IAAI,CAAC;AAExC;;;;;;GAMG;AACH,MAAM,MAAM,0BAA0B,GAAG,CACvC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,EACjB,KAAK,CAAC,EAAE,mBAAmB,KACxB,2BAA2B,GAAG,IAAI,CAAC;AAExC;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,CACrC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,KACV,2BAA2B,GAAG,IAAI,CAAC;AAExC;;;;;;GAMG;AACH,MAAM,MAAM,4BAA4B,GAAG,CACzC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,EACjB,mBAAmB,EAAE,MAAM,EAC3B,mBAAmB,EAAE,MAAM,KACxB,2BAA2B,GAAG,IAAI,CAAC;AAExC,MAAM,MAAM,oCAAoC,GAAG;IACjD,mBAAmB,EAAE,4BAA4B,CAAC;IAClD,eAAe,EAAE,wBAAwB,CAAC;IAC1C,iBAAiB,EAAE,0BAA0B,CAAC;IAC9C,eAAe,EAAE,wBAAwB,CAAC;IAC1C,mBAAmB,EAAE,4BAA4B,CAAC;CACnD,CAAC"}
@@ -1,43 +1,43 @@
1
- import type { DecoratorContext, Interface, Model, ModelProperty, Operation, Scalar, Type } from "@typespec/compiler";
1
+ import type { DecoratorContext, DecoratorValidatorCallbacks, Interface, Model, ModelProperty, Operation, Scalar, Type } from "@typespec/compiler";
2
2
  /**
3
3
  *
4
4
  *
5
5
  *
6
6
  * @param values Values
7
7
  */
8
- export type ResourceParameterBaseForDecorator = (context: DecoratorContext, target: ModelProperty, values: Type) => void;
8
+ export type ResourceParameterBaseForDecorator = (context: DecoratorContext, target: ModelProperty, values: Type) => DecoratorValidatorCallbacks | void;
9
9
  /**
10
10
  *
11
11
  *
12
12
  *
13
13
  * @param propertyName Name of the property to omit
14
14
  */
15
- export type ResourceBaseParametersOfDecorator = (context: DecoratorContext, target: Model, propertyName: Model) => void;
15
+ export type ResourceBaseParametersOfDecorator = (context: DecoratorContext, target: Model, propertyName: Model) => DecoratorValidatorCallbacks | void;
16
16
  /**
17
17
  *
18
18
  *
19
19
  *
20
20
  * @param resource Resource model
21
21
  */
22
- export type AssignProviderNameValueDecorator = (context: DecoratorContext, target: ModelProperty, resource: Model) => void;
22
+ export type AssignProviderNameValueDecorator = (context: DecoratorContext, target: ModelProperty, resource: Model) => DecoratorValidatorCallbacks | void;
23
23
  /**
24
24
  * This decorator is used to identify Azure Resource Manager resource. In generated
25
25
  * swagger definition, it will be marked with `x-ms-azure-resource`.
26
26
  *
27
27
  * It is *not* meant to be used directly by a spec author,
28
28
  */
29
- export type AzureResourceBaseDecorator = (context: DecoratorContext, target: Model) => void;
29
+ export type AzureResourceBaseDecorator = (context: DecoratorContext, target: Model) => DecoratorValidatorCallbacks | void;
30
30
  /**
31
31
  * Update the Azure Resource Manager provider namespace for a given entity.
32
32
  */
33
- export type ArmUpdateProviderNamespaceDecorator = (context: DecoratorContext, target: Operation) => void;
33
+ export type ArmUpdateProviderNamespaceDecorator = (context: DecoratorContext, target: Operation) => DecoratorValidatorCallbacks | void;
34
34
  /**
35
35
  *
36
36
  *
37
37
  *
38
38
  * @param resource Resource model
39
39
  */
40
- export type AssignUniqueProviderNameValueDecorator = (context: DecoratorContext, target: ModelProperty, resource: Model) => void;
40
+ export type AssignUniqueProviderNameValueDecorator = (context: DecoratorContext, target: ModelProperty, resource: Model) => DecoratorValidatorCallbacks | void;
41
41
  /**
42
42
  * This decorator is used to identify Azure Resource Manager resource types and extract their
43
43
  * metadata. It is *not* meant to be used directly by a spec author, it instead
@@ -51,7 +51,7 @@ export type AssignUniqueProviderNameValueDecorator = (context: DecoratorContext,
51
51
  *
52
52
  * @param properties Azure Resource Manager resource properties
53
53
  */
54
- export type ArmResourceInternalDecorator = (context: DecoratorContext, target: Model, properties: Model) => void;
54
+ export type ArmResourceInternalDecorator = (context: DecoratorContext, target: Model, properties: Model) => DecoratorValidatorCallbacks | void;
55
55
  /**
56
56
  * This decorator identifies Azure Resource Manager resource types that do not define
57
57
  * the name identifier parameter and type
@@ -61,12 +61,12 @@ export type ArmResourceInternalDecorator = (context: DecoratorContext, target: M
61
61
  * @param type The resource type name, e.g. "virtualMachines"
62
62
  * @param nameParameter The name of the resource name parameter, e.g. "virtualMachineName"
63
63
  */
64
- export type ArmResourceWithParameterDecorator = (context: DecoratorContext, target: Model, properties: Model, type: string, nameParameter: string) => void;
64
+ export type ArmResourceWithParameterDecorator = (context: DecoratorContext, target: Model, properties: Model, type: string, nameParameter: string) => DecoratorValidatorCallbacks | void;
65
65
  /**
66
66
  * Provides default name decoration on resource name property with
67
67
  * camelcased and pluralized key and segment name
68
68
  */
69
- export type DefaultResourceKeySegmentNameDecorator = (context: DecoratorContext, target: ModelProperty, armResource: Model, keyName: string, segment: string) => void;
69
+ export type DefaultResourceKeySegmentNameDecorator = (context: DecoratorContext, target: ModelProperty, armResource: Model, keyName: string, segment: string) => DecoratorValidatorCallbacks | void;
70
70
  /**
71
71
  * Provides strict contraint type check.
72
72
  *
@@ -76,7 +76,7 @@ export type DefaultResourceKeySegmentNameDecorator = (context: DecoratorContext,
76
76
  *
77
77
  * Note, this is intended for internal use only for now.
78
78
  */
79
- export type EnforceConstraintDecorator = (context: DecoratorContext, target: Operation | Model, sourceType: Model, constraintType: Model) => void;
79
+ export type EnforceConstraintDecorator = (context: DecoratorContext, target: Operation | Model, sourceType: Model, constraintType: Model) => DecoratorValidatorCallbacks | void;
80
80
  /**
81
81
  * Marks the operation as being a collection action
82
82
  *
@@ -85,26 +85,26 @@ export type EnforceConstraintDecorator = (context: DecoratorContext, target: Ope
85
85
  * @param parentFriendlyTypeName Friendly name for parent.
86
86
  * @param applyOperationRename If true, apply both doc and operation name update
87
87
  */
88
- export type ArmRenameListByOperationDecorator = (context: DecoratorContext, target: Operation, resourceType: Model, parentTypeName?: string, parentFriendlyTypeName?: string, applyOperationRename?: boolean) => void;
88
+ export type ArmRenameListByOperationDecorator = (context: DecoratorContext, target: Operation, resourceType: Model, parentTypeName?: string, parentFriendlyTypeName?: string, applyOperationRename?: boolean) => DecoratorValidatorCallbacks | void;
89
89
  /**
90
90
  * Please DO NOT USE in RestAPI specs.
91
91
  * This decorator is used to adjust optionality on ARM Resource's `properties` field for brownfield service conversion.
92
92
  */
93
- export type ArmResourcePropertiesOptionalityDecorator = (context: DecoratorContext, target: ModelProperty, isOptional: boolean) => void;
93
+ export type ArmResourcePropertiesOptionalityDecorator = (context: DecoratorContext, target: ModelProperty, isOptional: boolean) => DecoratorValidatorCallbacks | void;
94
94
  /**
95
95
  * designates a parameter as an explicit bodyRoot and sets the optionality of the parameter
96
96
  */
97
- export type ArmBodyRootDecorator = (context: DecoratorContext, target: ModelProperty, isOptional: boolean) => void;
97
+ export type ArmBodyRootDecorator = (context: DecoratorContext, target: ModelProperty, isOptional: boolean) => DecoratorValidatorCallbacks | void;
98
98
  /**
99
99
  * designates a type as a legacy type and emits a warning diagnostic when used
100
100
  */
101
- export type LegacyTypeDecorator = (context: DecoratorContext, target: Model | Operation | Interface | Scalar) => void;
101
+ export type LegacyTypeDecorator = (context: DecoratorContext, target: Model | Operation | Interface | Scalar) => DecoratorValidatorCallbacks | void;
102
102
  /**
103
103
  * Determines the built-in parent of a base resource
104
104
  *
105
105
  * @param parentType The parent type of the resource (Subscription, ResourceGroup, Tenant, Extension)
106
106
  */
107
- export type ResourceParentTypeDecorator = (context: DecoratorContext, target: Model, parentType: "Subscription" | "ResourceGroup" | "Tenant" | "Extension") => void;
107
+ export type ResourceParentTypeDecorator = (context: DecoratorContext, target: Model, parentType: "Subscription" | "ResourceGroup" | "Tenant" | "Extension") => DecoratorValidatorCallbacks | void;
108
108
  /**
109
109
  * Marks a resource operation with the associated resource, operation type, and name. If no name is provided, the name is calculated by resource type.
110
110
  *
@@ -113,7 +113,7 @@ export type ResourceParentTypeDecorator = (context: DecoratorContext, target: Mo
113
113
  * @param operationType The type of operation being performed
114
114
  * @param resourceName Optional. The name of the resource. If not provided, the resource type will be used
115
115
  */
116
- export type LegacyResourceOperationDecorator = (context: DecoratorContext, target: Operation, resourceType: Model, operationType: "read" | "createOrUpdate" | "update" | "delete" | "list" | "action" | "checkExistence", resourceName?: string) => void;
116
+ export type LegacyResourceOperationDecorator = (context: DecoratorContext, target: Operation, resourceType: Model, operationType: "read" | "createOrUpdate" | "update" | "delete" | "list" | "action" | "checkExistence", resourceName?: string) => DecoratorValidatorCallbacks | void;
117
117
  /**
118
118
  * Marks an extension resource operation with the associated resource, operation type, and name. If no name is provided, the name is calculated by resource type.
119
119
  *
@@ -123,7 +123,7 @@ export type LegacyResourceOperationDecorator = (context: DecoratorContext, targe
123
123
  * @param operationType The type of operation being performed
124
124
  * @param resourceName Optional. The name of the resource. If not provided, the scope and resource name will be used
125
125
  */
126
- export type ExtensionResourceOperationDecorator = (context: DecoratorContext, target: Operation, targetResourceType: Model, extensionResourceType: Model, operationType: "read" | "createOrUpdate" | "update" | "delete" | "list" | "action" | "checkExistence", resourceName?: string) => void;
126
+ export type ExtensionResourceOperationDecorator = (context: DecoratorContext, target: Operation, targetResourceType: Model, extensionResourceType: Model, operationType: "read" | "createOrUpdate" | "update" | "delete" | "list" | "action" | "checkExistence", resourceName?: string) => DecoratorValidatorCallbacks | void;
127
127
  /**
128
128
  * Marks an extension resource operation with the associated resource, operation type, and name. If no name is provided, the name is calculated by resource type.
129
129
  *
@@ -133,7 +133,7 @@ export type ExtensionResourceOperationDecorator = (context: DecoratorContext, ta
133
133
  * @param operationType The type of operation being performed
134
134
  * @param resourceName Optional. The name of the resource. If not provided, the scope and resource name will be used
135
135
  */
136
- export type BuiltInResourceOperationDecorator = (context: DecoratorContext, target: Operation, parentResourceType: Model, builtInResourceType: Model, operationType: "read" | "createOrUpdate" | "update" | "delete" | "list" | "action" | "checkExistence", resourceName?: string) => void;
136
+ export type BuiltInResourceOperationDecorator = (context: DecoratorContext, target: Operation, parentResourceType: Model, builtInResourceType: Model, operationType: "read" | "createOrUpdate" | "update" | "delete" | "list" | "action" | "checkExistence", resourceName?: string) => DecoratorValidatorCallbacks | void;
137
137
  /**
138
138
  * Marks a resource operation with the associated resource, operation type, and name. If no name is provided, the name is calculated by resource type.
139
139
  *
@@ -142,7 +142,7 @@ export type BuiltInResourceOperationDecorator = (context: DecoratorContext, targ
142
142
  * @param operationType The type of operation being performed
143
143
  * @param resourceName Optional. The name of the resource. If not provided, the resource type will be used
144
144
  */
145
- export type LegacyExtensionResourceOperationDecorator = (context: DecoratorContext, target: Operation, resourceType: Model, operationType: "read" | "createOrUpdate" | "update" | "delete" | "list" | "action" | "checkExistence", resourceName?: string) => void;
145
+ export type LegacyExtensionResourceOperationDecorator = (context: DecoratorContext, target: Operation, resourceType: Model, operationType: "read" | "createOrUpdate" | "update" | "delete" | "list" | "action" | "checkExistence", resourceName?: string) => DecoratorValidatorCallbacks | void;
146
146
  /**
147
147
  * Validates that the specified common-types version is valid for the given resource type.
148
148
  *
@@ -150,7 +150,7 @@ export type LegacyExtensionResourceOperationDecorator = (context: DecoratorConte
150
150
  * @param version The common-types version
151
151
  * @param resourceName The name of the resource
152
152
  */
153
- export type ValidateCommonTypesVersionForResourceDecorator = (context: DecoratorContext, target: Model, version: string, resourceName: string) => void;
153
+ export type ValidateCommonTypesVersionForResourceDecorator = (context: DecoratorContext, target: Model, version: string, resourceName: string) => DecoratorValidatorCallbacks | void;
154
154
  export type AzureResourceManagerPrivateDecorators = {
155
155
  resourceParameterBaseFor: ResourceParameterBaseForDecorator;
156
156
  resourceBaseParametersOf: ResourceBaseParametersOfDecorator;
@@ -1 +1 @@
1
- {"version":3,"file":"Azure.ResourceManager.Private.d.ts","sourceRoot":"","sources":["../../generated-defs/Azure.ResourceManager.Private.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,SAAS,EACT,KAAK,EACL,aAAa,EACb,SAAS,EACT,MAAM,EACN,IAAI,EACL,MAAM,oBAAoB,CAAC;AAE5B;;;;;GAKG;AACH,MAAM,MAAM,iCAAiC,GAAG,CAC9C,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,IAAI,KACT,IAAI,CAAC;AAEV;;;;;GAKG;AACH,MAAM,MAAM,iCAAiC,GAAG,CAC9C,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,EACb,YAAY,EAAE,KAAK,KAChB,IAAI,CAAC;AAgBV;;;;;GAKG;AACH,MAAM,MAAM,gCAAgC,GAAG,CAC7C,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,KAAK,KACZ,IAAI,CAAC;AAEV;;;;;GAKG;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,KAAK,IAAI,CAAC;AAE5F;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG,CAChD,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,KACd,IAAI,CAAC;AAEV;;;;;GAKG;AACH,MAAM,MAAM,sCAAsC,GAAG,CACnD,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,KAAK,KACZ,IAAI,CAAC;AAEV;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,4BAA4B,GAAG,CACzC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,EACb,UAAU,EAAE,KAAK,KACd,IAAI,CAAC;AAEV;;;;;;;;GAQG;AACH,MAAM,MAAM,iCAAiC,GAAG,CAC9C,OAAO,EA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KAClB,IAAI,CAAC;AAEV;;;;;;GAMG;AACH,MAAM,MAAM,8CAA8C,GAAG,CAC3D,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,EACb,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,KACjB,IAAI,CAAC;AAEV,MAAM,MAAM,qCAAqC,GAAG;IAClD,wBAAwB,EAAE,iCAAiC,CAAC;IAC5D,wBAAwB,EAAE,iCAAiC,CAAC;IAC5D,WAAW,EAAE,oBAAoB,CAAC;IAClC,uBAAuB,EAAE,gCAAgC,CAAC;IAC1D,iBAAiB,EAAE,0BAA0B,CAAC;IAC9C,0BAA0B,EAAE,mCAAmC,CAAC;IAChE,6BAA6B,EAAE,sCAAsC,CAAC;IACtE,mBAAmB,EAAE,4BAA4B,CAAC;IAClD,wBAAwB,EAAE,iCAAiC,CAAC;IAC5D,6BAA6B,EAAE,sCAAsC,CAAC;IACtE,iBAAiB,EAAE,0BAA0B,CAAC;IAC9C,wBAAwB,EAAE,iCAAiC,CAAC;IAC5D,gCAAgC,EAAE,yCAAyC,CAAC;IAC5E,WAAW,EAAE,oBAAoB,CAAC;IAClC,UAAU,EAAE,mBAAmB,CAAC;IAChC,kBAAkB,EAAE,2BAA2B,CAAC;IAChD,uBAAuB,EAAE,gCAAgC,CAAC;IAC1D,0BAA0B,EAAE,mCAAmC,CAAC;IAChE,wBAAwB,EAAE,iCAAiC,CAAC;IAC5D,gCAAgC,EAAE,yCAAyC,CAAC;IAC5E,qCAAqC,EAAE,8CAA8C,CAAC;CACvF,CAAC"}
1
+ {"version":3,"file":"Azure.ResourceManager.Private.d.ts","sourceRoot":"","sources":["../../generated-defs/Azure.ResourceManager.Private.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,2BAA2B,EAC3B,SAAS,EACT,KAAK,EACL,aAAa,EACb,SAAS,EACT,MAAM,EACN,IAAI,EACL,MAAM,oBAAoB,CAAC;AAE5B;;;;;GAKG;AACH,MA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C,EAAE,MAAM,KAClB,2BAA2B,GAAG,IAAI,CAAC;AAExC;;;;;;GAMG;AACH,MAAM,MAAM,8CAA8C,GAAG,CAC3D,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,EACb,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,KACjB,2BAA2B,GAAG,IAAI,CAAC;AAExC,MAAM,MAAM,qCAAqC,GAAG;IAClD,wBAAwB,EAAE,iCAAiC,CAAC;IAC5D,wBAAwB,EAAE,iCAAiC,CAAC;IAC5D,WAAW,EAAE,oBAAoB,CAAC;IAClC,uBAAuB,EAAE,gCAAgC,CAAC;IAC1D,iBAAiB,EAAE,0BAA0B,CAAC;IAC9C,0BAA0B,EAAE,mCAAmC,CAAC;IAChE,6BAA6B,EAAE,sCAAsC,CAAC;IACtE,mBAAmB,EAAE,4BAA4B,CAAC;IAClD,wBAAwB,EAAE,iCAAiC,CAAC;IAC5D,6BAA6B,EAAE,sCAAsC,CAAC;IACtE,iBAAiB,EAAE,0BAA0B,CAAC;IAC9C,wBAAwB,EAAE,iCAAiC,CAAC;IAC5D,gCAAgC,EAAE,yCAAyC,CAAC;IAC5E,WAAW,EAAE,oBAAoB,CAAC;IAClC,UAAU,EAAE,mBAAmB,CAAC;IAChC,kBAAkB,EAAE,2BAA2B,CAAC;IAChD,uBAAuB,EAAE,gCAAgC,CAAC;IAC1D,0BAA0B,EAAE,mCAAmC,CAAC;IAChE,wBAAwB,EAAE,iCAAiC,CAAC;IAC5D,gCAAgC,EAAE,yCAAyC,CAAC;IAC5E,qCAAqC,EAAE,8CAA8C,CAAC;CACvF,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { DecoratorContext, EnumMember, EnumValue, Interface, Model, ModelProperty, Namespace, Operation, Type } from "@typespec/compiler";
1
+ import type { DecoratorContext, DecoratorValidatorCallbacks, EnumMember, EnumValue, Interface, Model, ModelProperty, Namespace, Operation, Type } from "@typespec/compiler";
2
2
  export interface ResourceOperationOptions {
3
3
  readonly resourceType?: Record<string, unknown>;
4
4
  readonly allowStaticRoutes?: boolean;
@@ -7,14 +7,14 @@ export interface ResourceOperationOptions {
7
7
  /**
8
8
  * Marks the operation as being a collection action
9
9
  */
10
- export type ArmResourceCollectionActionDecorator = (context: DecoratorContext, target: Operation) => void;
10
+ export type ArmResourceCollectionActionDecorator = (context: DecoratorContext, target: Operation) => DecoratorValidatorCallbacks | void;
11
11
  /**
12
12
  * `@armResourceType` sets the value fo the decorated string
13
13
  * property to the type of the Azure Resource Manager resource.
14
14
  *
15
15
  * @param resource The resource to get the type of
16
16
  */
17
- export type ArmProviderNameValueDecorator = (context: DecoratorContext, target: Operation) => void;
17
+ export type ArmProviderNameValueDecorator = (context: DecoratorContext, target: Operation) => DecoratorValidatorCallbacks | void;
18
18
  /**
19
19
  * This decorator is used to indicate the identifying properties of objects in the array, e.g. size
20
20
  * The properties that are used as identifiers for the object needs to be provided as a list of strings.
@@ -28,7 +28,7 @@ export type ArmProviderNameValueDecorator = (context: DecoratorContext, target:
28
28
  * }
29
29
  * ```
30
30
  */
31
- export type IdentifiersDecorator = (context: DecoratorContext, entity: ModelProperty | Type, properties: readonly string[]) => void;
31
+ export type IdentifiersDecorator = (context: DecoratorContext, entity: ModelProperty | Type, properties: readonly string[]) => DecoratorValidatorCallbacks | void;
32
32
  /**
33
33
  * `@armProviderNamespace` sets the Azure Resource Manager provider name. It will default to use the
34
34
  * Namespace element value unless an override value is specified.
@@ -46,14 +46,14 @@ export type IdentifiersDecorator = (context: DecoratorContext, entity: ModelProp
46
46
  * @param providerNamespace Provider namespace
47
47
  * @param libraryNamespaces a library namespace containing types for this namespace
48
48
  */
49
- export type ArmProviderNamespaceDecorator = (context: DecoratorContext, target: Namespace, providerNamespace?: string) => void;
49
+ export type ArmProviderNamespaceDecorator = (context: DecoratorContext, target: Namespace, providerNamespace?: string) => DecoratorValidatorCallbacks | void;
50
50
  /**
51
51
  * Declare the Azure Resource Manager library namespaces used in this provider.
52
52
  * This allows sharing Azure Resource Manager resource types across specifications
53
53
  *
54
54
  * @param namespaces The namespaces of Azure Resource Manager libraries used in this provider
55
55
  */
56
- export type UseLibraryNamespaceDecorator = (context: DecoratorContext, target: Namespace, ...namespaces: Namespace[]) => void;
56
+ export type UseLibraryNamespaceDecorator = (context: DecoratorContext, target: Namespace, ...namespaces: Namespace[]) => DecoratorValidatorCallbacks | void;
57
57
  /**
58
58
  * `@armLibraryNamespace` designates a namespace as containign Azure Resource Manager Provider information.
59
59
  *
@@ -63,7 +63,7 @@ export type UseLibraryNamespaceDecorator = (context: DecoratorContext, target: N
63
63
  * namespace Microsoft.Contoso;
64
64
  * ```
65
65
  */
66
- export type ArmLibraryNamespaceDecorator = (context: DecoratorContext, target: Namespace) => void;
66
+ export type ArmLibraryNamespaceDecorator = (context: DecoratorContext, target: Namespace) => DecoratorValidatorCallbacks | void;
67
67
  /**
68
68
  * `@singleton` marks an Azure Resource Manager resource model as a singleton resource.
69
69
  *
@@ -74,7 +74,7 @@ export type ArmLibraryNamespaceDecorator = (context: DecoratorContext, target: N
74
74
  *
75
75
  * @param keyValue The name of the singleton resource. Default name is "default".
76
76
  */
77
- export type SingletonDecorator = (context: DecoratorContext, target: Model, keyValue?: string | "default") => void;
77
+ export type SingletonDecorator = (context: DecoratorContext, target: Model, keyValue?: string | "default") => DecoratorValidatorCallbacks | void;
78
78
  /**
79
79
  * `@tenantResource` marks an Azure Resource Manager resource model as a Tenant resource/Root resource/Top-Level resource.
80
80
  *
@@ -83,7 +83,7 @@ export type SingletonDecorator = (context: DecoratorContext, target: Model, keyV
83
83
  *
84
84
  * See more details on [different Azure Resource Manager resource type here.](https://azure.github.io/typespec-azure/docs/howtos/ARM/resource-type)
85
85
  */
86
- export type TenantResourceDecorator = (context: DecoratorContext, target: Model) => void;
86
+ export type TenantResourceDecorator = (context: DecoratorContext, target: Model) => DecoratorValidatorCallbacks | void;
87
87
  /**
88
88
  * `@subscriptionResource` marks an Azure Resource Manager resource model as a subscription resource.
89
89
  *
@@ -92,7 +92,7 @@ export type TenantResourceDecorator = (context: DecoratorContext, target: Model)
92
92
  *
93
93
  * See more details on [different Azure Resource Manager resource type here.](https://azure.github.io/typespec-azure/docs/howtos/ARM/resource-type)
94
94
  */
95
- export type SubscriptionResourceDecorator = (context: DecoratorContext, target: Model) => void;
95
+ export type SubscriptionResourceDecorator = (context: DecoratorContext, target: Model) => DecoratorValidatorCallbacks | void;
96
96
  /**
97
97
  * `@locationResource` marks an Azure Resource Manager resource model as a location based resource.
98
98
  *
@@ -101,7 +101,7 @@ export type SubscriptionResourceDecorator = (context: DecoratorContext, target:
101
101
  *
102
102
  * See more details on [different Azure Resource Manager resource type here.](https://azure.github.io/typespec-azure/docs/howtos/ARM/resource-type)
103
103
  */
104
- export type LocationResourceDecorator = (context: DecoratorContext, target: Model) => void;
104
+ export type LocationResourceDecorator = (context: DecoratorContext, target: Model) => DecoratorValidatorCallbacks | void;
105
105
  /**
106
106
  * `@resourceGroupResource` marks an Azure Resource Manager resource model as a resource group level resource.
107
107
  * This is the default option for Azure Resource Manager resources. It is provided for symmetry and clarity, and
@@ -111,7 +111,7 @@ export type LocationResourceDecorator = (context: DecoratorContext, target: Mode
111
111
  *
112
112
  * See more details on [different Azure Resource Manager resource type here.](https://azure.github.io/typespec-azure/docs/howtos/ARM/resource-type)
113
113
  */
114
- export type ResourceGroupResourceDecorator = (context: DecoratorContext, target: Model) => void;
114
+ export type ResourceGroupResourceDecorator = (context: DecoratorContext, target: Model) => DecoratorValidatorCallbacks | void;
115
115
  /**
116
116
  * `@extensionResource` marks an Azure Resource Manager resource model as an Extension resource.
117
117
  * Extension resource extends other resource types. URL path is appended
@@ -121,7 +121,7 @@ export type ResourceGroupResourceDecorator = (context: DecoratorContext, target:
121
121
  *
122
122
  * See more details on [different Azure Resource Manager resource type here.](https://azure.github.io/typespec-azure/docs/howtos/ARM/resource-type)
123
123
  */
124
- export type ExtensionResourceDecorator = (context: DecoratorContext, target: Model) => void;
124
+ export type ExtensionResourceDecorator = (context: DecoratorContext, target: Model) => DecoratorValidatorCallbacks | void;
125
125
  /**
126
126
  *
127
127
  *
@@ -129,7 +129,7 @@ export type ExtensionResourceDecorator = (context: DecoratorContext, target: Mod
129
129
  * @param resourceModel Resource model
130
130
  * @param resourceName Optional. The name of the resource. If not provided, the name of the resource model will be used.
131
131
  */
132
- export type ArmResourceActionDecorator = (context: DecoratorContext, target: Operation, resourceModel: Model, resourceName?: string) => void;
132
+ export type ArmResourceActionDecorator = (context: DecoratorContext, target: Operation, resourceModel: Model, resourceName?: string) => DecoratorValidatorCallbacks | void;
133
133
  /**
134
134
  *
135
135
  *
@@ -137,7 +137,7 @@ export type ArmResourceActionDecorator = (context: DecoratorContext, target: Ope
137
137
  * @param resourceModel Resource model
138
138
  * @param resourceName Optional. The name of the resource. If not provided, the name of the resource model will be used.
139
139
  */
140
- export type ArmResourceCreateOrUpdateDecorator = (context: DecoratorContext, target: Operation, resourceModel: Model, resourceName?: string) => void;
140
+ export type ArmResourceCreateOrUpdateDecorator = (context: DecoratorContext, target: Operation, resourceModel: Model, resourceName?: string) => DecoratorValidatorCallbacks | void;
141
141
  /**
142
142
  *
143
143
  *
@@ -145,7 +145,7 @@ export type ArmResourceCreateOrUpdateDecorator = (context: DecoratorContext, tar
145
145
  * @param resourceModel Resource model
146
146
  * @param resourceName Optional. The name of the resource. If not provided, the name of the resource model will be used.
147
147
  */
148
- export type ArmResourceReadDecorator = (context: DecoratorContext, target: Operation, resourceModel: Model, resourceName?: string) => void;
148
+ export type ArmResourceReadDecorator = (context: DecoratorContext, target: Operation, resourceModel: Model, resourceName?: string) => DecoratorValidatorCallbacks | void;
149
149
  /**
150
150
  *
151
151
  *
@@ -153,7 +153,7 @@ export type ArmResourceReadDecorator = (context: DecoratorContext, target: Opera
153
153
  * @param resourceModel Resource model
154
154
  * @param resourceName Optional. The name of the resource. If not provided, the name of the resource model will be used.
155
155
  */
156
- export type ArmResourceUpdateDecorator = (context: DecoratorContext, target: Operation, resourceModel: Model, resourceName?: string) => void;
156
+ export type ArmResourceUpdateDecorator = (context: DecoratorContext, target: Operation, resourceModel: Model, resourceName?: string) => DecoratorValidatorCallbacks | void;
157
157
  /**
158
158
  *
159
159
  *
@@ -161,7 +161,7 @@ export type ArmResourceUpdateDecorator = (context: DecoratorContext, target: Ope
161
161
  * @param resourceModel Resource model
162
162
  * @param resourceName Optional. The name of the resource. If not provided, the name of the resource model will be used.
163
163
  */
164
- export type ArmResourceDeleteDecorator = (context: DecoratorContext, target: Operation, resourceModel: Model, resourceName?: string) => void;
164
+ export type ArmResourceDeleteDecorator = (context: DecoratorContext, target: Operation, resourceModel: Model, resourceName?: string) => DecoratorValidatorCallbacks | void;
165
165
  /**
166
166
  *
167
167
  *
@@ -169,14 +169,14 @@ export type ArmResourceDeleteDecorator = (context: DecoratorContext, target: Ope
169
169
  * @param resourceModel Resource model
170
170
  * @param resourceName Optional. The name of the resource. If not provided, the name of the resource model will be used.
171
171
  */
172
- export type ArmResourceListDecorator = (context: DecoratorContext, target: Operation, resourceModel: Model, resourceName?: string) => void;
172
+ export type ArmResourceListDecorator = (context: DecoratorContext, target: Operation, resourceModel: Model, resourceName?: string) => DecoratorValidatorCallbacks | void;
173
173
  /**
174
174
  * Marks the operation as being a check existence (HEAD) operation
175
175
  *
176
176
  * @param resourceModel Resource model
177
177
  * @param resourceName Optional. The name of the resource. If not provided, the name of the resource model will be used.
178
178
  */
179
- export type ArmResourceCheckExistenceDecorator = (context: DecoratorContext, target: Operation, resourceModel: Model, resourceName?: string) => void;
179
+ export type ArmResourceCheckExistenceDecorator = (context: DecoratorContext, target: Operation, resourceModel: Model, resourceName?: string) => DecoratorValidatorCallbacks | void;
180
180
  /**
181
181
  * This decorator is used to identify interfaces containing resource operations.
182
182
  * By default, it marks the interface with the `@autoRoute` decorator so that
@@ -198,14 +198,14 @@ export type ArmResourceCheckExistenceDecorator = (context: DecoratorContext, tar
198
198
  *
199
199
  * @param resourceOperationOptions Options for routing the operations in the interface and associating them with a specific resource
200
200
  */
201
- export type ArmResourceOperationsDecorator = (context: DecoratorContext, target: Interface, resourceOperationOptions?: Type | ResourceOperationOptions) => void;
201
+ export type ArmResourceOperationsDecorator = (context: DecoratorContext, target: Interface, resourceOperationOptions?: Type | ResourceOperationOptions) => DecoratorValidatorCallbacks | void;
202
202
  /**
203
203
  * This decorator is used either on a namespace or a version enum value to indicate
204
204
  * the version of the Azure Resource Manager common-types to use for refs in emitted Swagger files.
205
205
  *
206
206
  * @param version The Azure.ResourceManager.CommonTypes.Versions for the desired common-types version or an equivalent string value like "v5".
207
207
  */
208
- export type ArmCommonTypesVersionDecorator = (context: DecoratorContext, target: Namespace | EnumMember, version: string | EnumValue) => void;
208
+ export type ArmCommonTypesVersionDecorator = (context: DecoratorContext, target: Namespace | EnumMember, version: string | EnumValue) => DecoratorValidatorCallbacks | void;
209
209
  /**
210
210
  * This decorator is used on Azure Resource Manager resources that are not based on
211
211
  * Azure.ResourceManager common types.
@@ -213,13 +213,13 @@ export type ArmCommonTypesVersionDecorator = (context: DecoratorContext, target:
213
213
  * @param propertiesType : The type of the resource properties.
214
214
  * @param provider Optional. The resource provider namespace for the virtual resource.
215
215
  */
216
- export type ArmVirtualResourceDecorator = (context: DecoratorContext, target: Model, provider?: string) => void;
216
+ export type ArmVirtualResourceDecorator = (context: DecoratorContext, target: Model, provider?: string) => DecoratorValidatorCallbacks | void;
217
217
  /**
218
218
  * This decorator sets the base type of the given resource.
219
219
  *
220
220
  * @param baseTypeIt The built-in parent of the resource, this can be "Tenant", "Subscription", "ResourceGroup", "Location", or "Extension"
221
221
  */
222
- export type ResourceBaseTypeDecorator = (context: DecoratorContext, target: Model, baseTypeIt: Type) => void;
222
+ export type ResourceBaseTypeDecorator = (context: DecoratorContext, target: Model, baseTypeIt: Type) => DecoratorValidatorCallbacks | void;
223
223
  export type AzureResourceManagerDecorators = {
224
224
  armResourceCollectionAction: ArmResourceCollectionActionDecorator;
225
225
  armProviderNameValue: ArmProviderNameValueDecorator;
@@ -1 +1 @@
1
- {"version":3,"file":"Azure.ResourceManager.d.ts","sourceRoot":"","sources":["../../generated-defs/Azure.ResourceManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,SAAS,EACT,KAAK,EACL,aAAa,EACb,SAAS,EACT,SAAS,EACT,IAAI,EACL,MAAM,oBAAoB,CAAC;AAE5B,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChD,QAAQ,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IACrC,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,MAAM,oCAAoC,GAAG,CACjD,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,KACd,IAAI,CAAC;AAEV;;;;;GAKG;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,KAAK,IAAI,CAAC;AAEnG;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,oBAAoB,GAAG,CACjC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,aAAa,GAAG,IAAI,EAC5B,UAAU,EAAE,SAAS,MAAM,EAAE,KAC1B,IAAI,CAAC;AAEV;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,6BAA6B,GAAG,CAC1C,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,EACjB,iBAAiB,CAAC,EAAE,MAAM,KACvB,IAAI,CAAC;AAEV;;;;;GAKG;AACH,MAAM,MAAM,4BAA4B,GAAG,CACzC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,EACjB,GAAG,UAAU,EAAE,SAAS,EAAE,KACvB,IAAI,CAAC;AAEV;;;;;;;;GAQG;AACH,MAAM,MAAM,4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7C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure-tools/typespec-azure-resource-manager",
3
- "version": "0.63.0",
3
+ "version": "0.64.0-dev.1",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec Azure Resource Manager library",
6
6
  "homepage": "https://azure.github.io/typespec-azure",
@@ -47,30 +47,30 @@
47
47
  "pluralize": "^8.0.0"
48
48
  },
49
49
  "peerDependencies": {
50
- "@azure-tools/typespec-azure-core": "^0.63.0",
50
+ "@azure-tools/typespec-azure-core": "^0.63.0 || >=0.64.0-dev <0.64.0",
51
+ "@typespec/compiler": "^1.7.1",
51
52
  "@typespec/http": "^1.7.0",
52
- "@typespec/compiler": "^1.7.0",
53
- "@typespec/rest": "^0.77.0",
53
+ "@typespec/rest": "^0.77.0 || >=0.78.0-dev <0.78.0",
54
54
  "@typespec/openapi": "^1.7.0",
55
- "@typespec/versioning": "^0.77.0"
55
+ "@typespec/versioning": "^0.77.0 || >=0.78.0-dev <0.78.0"
56
56
  },
57
57
  "devDependencies": {
58
- "@types/node": "~24.10.1",
58
+ "@azure-tools/typespec-azure-core": "^0.63.0 || >=0.64.0-dev <0.64.0",
59
+ "@types/node": "~25.0.2",
59
60
  "@types/pluralize": "^0.0.33",
60
- "@vitest/coverage-v8": "^4.0.4",
61
- "@vitest/ui": "^4.0.4",
61
+ "@typespec/compiler": "^1.7.1",
62
+ "@typespec/http": "^1.7.0",
63
+ "@typespec/library-linter": "^0.77.0 || >=0.78.0-dev <0.78.0",
64
+ "@typespec/rest": "^0.77.0 || >=0.78.0-dev <0.78.0",
65
+ "@typespec/tspd": "^0.73.2 || >=0.74.0-dev <0.74.0",
66
+ "@typespec/versioning": "^0.77.0 || >=0.78.0-dev <0.78.0",
67
+ "@typespec/openapi": "^1.7.0",
68
+ "@vitest/coverage-v8": "^4.0.15",
69
+ "@vitest/ui": "^4.0.15",
62
70
  "c8": "^10.1.3",
63
71
  "rimraf": "~6.1.2",
64
72
  "typescript": "~5.9.2",
65
- "vitest": "^4.0.4",
66
- "@azure-tools/typespec-azure-core": "^0.63.0",
67
- "@typespec/http": "^1.7.0",
68
- "@typespec/compiler": "^1.7.0",
69
- "@typespec/rest": "^0.77.0",
70
- "@typespec/versioning": "^0.77.0",
71
- "@typespec/library-linter": "^0.77.0",
72
- "@typespec/tspd": "^0.73.2",
73
- "@typespec/openapi": "^1.7.0"
73
+ "vitest": "^4.0.15"
74
74
  },
75
75
  "scripts": {
76
76
  "clean": "rimraf ./dist ./temp",