@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.
@@ -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 being
51
- * decorated `@visibility("read")`.
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 1 `@visibility` argument, then the property is not
54
- * read-only. For example, `@visibility("read", "update")` does not
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
  /**
@@ -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 being
113
- * decorated `@visibility("read")`.
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 1 `@visibility` argument, then the property is not
116
- * read-only. For example, `@visibility("read", "update")` does not
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typespec/openapi",
3
- "version": "0.66.0-dev.1",
3
+ "version": "0.66.0-dev.2",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec library providing OpenAPI concepts",
6
6
  "homepage": "https://typespec.io",