@typespec/openapi 0.66.0-dev.1 → 0.66.0-dev.2
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.
- package/dist/src/helpers.d.ts +5 -5
- package/dist/src/helpers.js +5 -5
- package/package.json +1 -1
package/dist/src/helpers.d.ts
CHANGED
|
@@ -47,12 +47,12 @@ export declare function getParameterKey(program: Program, property: ModelPropert
|
|
|
47
47
|
*/
|
|
48
48
|
export declare function resolveOperationId(program: Program, operation: Operation): string;
|
|
49
49
|
/**
|
|
50
|
-
* Determines if a property is read-only, which is defined as
|
|
51
|
-
*
|
|
50
|
+
* Determines if a property is read-only, which is defined as having the
|
|
51
|
+
* only the `Lifecycle.Read` modifier.
|
|
52
52
|
*
|
|
53
|
-
* If there is more than
|
|
54
|
-
* read-only. For example, `@visibility(
|
|
55
|
-
* designate a read-only property.
|
|
53
|
+
* If there is more than one Lifecycle visibility modifier active on the property,
|
|
54
|
+
* then the property is not read-only. For example, `@visibility(Lifecycle.Read, Lifecycle.Update)`
|
|
55
|
+
* does not designate a read-only property.
|
|
56
56
|
*/
|
|
57
57
|
export declare function isReadonlyProperty(program: Program, property: ModelProperty): boolean;
|
|
58
58
|
/**
|
package/dist/src/helpers.js
CHANGED
|
@@ -109,12 +109,12 @@ export function resolveOperationId(program, operation) {
|
|
|
109
109
|
return `${namespace.name}_${operation.name}`;
|
|
110
110
|
}
|
|
111
111
|
/**
|
|
112
|
-
* Determines if a property is read-only, which is defined as
|
|
113
|
-
*
|
|
112
|
+
* Determines if a property is read-only, which is defined as having the
|
|
113
|
+
* only the `Lifecycle.Read` modifier.
|
|
114
114
|
*
|
|
115
|
-
* If there is more than
|
|
116
|
-
* read-only. For example, `@visibility(
|
|
117
|
-
* designate a read-only property.
|
|
115
|
+
* If there is more than one Lifecycle visibility modifier active on the property,
|
|
116
|
+
* then the property is not read-only. For example, `@visibility(Lifecycle.Read, Lifecycle.Update)`
|
|
117
|
+
* does not designate a read-only property.
|
|
118
118
|
*/
|
|
119
119
|
export function isReadonlyProperty(program, property) {
|
|
120
120
|
const Lifecycle = getLifecycleVisibilityEnum(program);
|