@typespec/openapi 0.54.0-dev.2 → 0.54.0

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/README.md CHANGED
@@ -54,14 +54,14 @@ Attach some custom data to the OpenAPI element generated from this type.
54
54
 
55
55
  ##### Target
56
56
 
57
- `(intrinsic) unknown`
57
+ `unknown`
58
58
 
59
59
  ##### Parameters
60
60
 
61
- | Name | Type | Description |
62
- | ----- | ----------------------- | ----------------------------------- |
63
- | key | `valueof scalar string` | Extension key. Must start with `x-` |
64
- | value | `(intrinsic) unknown` | Extension value. |
61
+ | Name | Type | Description |
62
+ | ----- | ---------------- | ----------------------------------- |
63
+ | key | `valueof string` | Extension key. Must start with `x-` |
64
+ | value | `unknown` | Extension value. |
65
65
 
66
66
  ##### Examples
67
67
 
@@ -86,14 +86,14 @@ Specify the OpenAPI `externalDocs` property for this type.
86
86
 
87
87
  ##### Target
88
88
 
89
- `(intrinsic) unknown`
89
+ `unknown`
90
90
 
91
91
  ##### Parameters
92
92
 
93
- | Name | Type | Description |
94
- | ----------- | ----------------------- | ----------------------- |
95
- | url | `valueof scalar string` | Url to the docs |
96
- | description | `valueof scalar string` | Description of the docs |
93
+ | Name | Type | Description |
94
+ | ----------- | ---------------- | ----------------------- |
95
+ | url | `valueof string` | Url to the docs |
96
+ | description | `valueof string` | Description of the docs |
97
97
 
98
98
  ##### Examples
99
99
 
@@ -120,9 +120,9 @@ The service `title` and `version` are already specified using `@service`.
120
120
 
121
121
  ##### Parameters
122
122
 
123
- | Name | Type | Description |
124
- | -------------- | --------------------------------------- | ---------------------- |
125
- | additionalInfo | `model TypeSpec.OpenAPI.AdditionalInfo` | Additional information |
123
+ | Name | Type | Description |
124
+ | -------------- | ----------------------------------- | ---------------------- |
125
+ | additionalInfo | [`AdditionalInfo`](#additionalinfo) | Additional information |
126
126
 
127
127
  #### `@operationId`
128
128
 
@@ -138,9 +138,9 @@ Specify the OpenAPI `operationId` property for this operation.
138
138
 
139
139
  ##### Parameters
140
140
 
141
- | Name | Type | Description |
142
- | ----------- | ----------------------- | ------------------- |
143
- | operationId | `valueof scalar string` | Operation id value. |
141
+ | Name | Type | Description |
142
+ | ----------- | ---------------- | ------------------- |
143
+ | operationId | `valueof string` | Operation id value. |
144
144
 
145
145
  ##### Examples
146
146
 
@@ -30,7 +30,7 @@ export interface ExternalDocs {
30
30
  /**
31
31
  * Allows referencing an external resource for extended documentation.
32
32
  * @param url The URL for the target documentation. Value MUST be in the format of a URL.
33
- * @param @optional description A short description of the target documentation.
33
+ * @param description A short description of the target documentation.
34
34
  */
35
35
  export declare function $externalDocs(context: DecoratorContext, target: Type, url: string, description?: string): void;
36
36
  export declare function getExternalDocs(program: Program, entity: Type): ExternalDocs | undefined;
@@ -71,7 +71,7 @@ const externalDocsKey = createStateSymbol("externalDocs");
71
71
  /**
72
72
  * Allows referencing an external resource for extended documentation.
73
73
  * @param url The URL for the target documentation. Value MUST be in the format of a URL.
74
- * @param @optional description A short description of the target documentation.
74
+ * @param description A short description of the target documentation.
75
75
  */
76
76
  export function $externalDocs(context, target, url, description) {
77
77
  const doc = { url };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typespec/openapi",
3
- "version": "0.54.0-dev.2",
3
+ "version": "0.54.0",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec library providing OpenAPI concepts",
6
6
  "homepage": "https://typespec.io",
@@ -38,17 +38,11 @@
38
38
  "!dist/test/**"
39
39
  ],
40
40
  "peerDependencies": {
41
- "@typespec/compiler": "~0.53.1 || >=0.54.0-dev <0.54.0",
42
- "@typespec/http": "~0.53.0 || >=0.54.0-dev <0.54.0"
41
+ "@typespec/compiler": "~0.54.0",
42
+ "@typespec/http": "~0.54.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/node": "~18.11.19",
46
- "@typespec/compiler": "~0.53.1 || >=0.54.0-dev <0.54.0",
47
- "@typespec/eslint-config-typespec": "~0.53.0 || >=0.54.0-dev <0.54.0",
48
- "@typespec/eslint-plugin": "~0.53.0 || >=0.54.0-dev <0.54.0",
49
- "@typespec/http": "~0.53.0 || >=0.54.0-dev <0.54.0",
50
- "@typespec/library-linter": "~0.53.0 || >=0.54.0-dev <0.54.0",
51
- "@typespec/rest": "~0.53.0 || >=0.54.0-dev <0.54.0",
52
46
  "@vitest/coverage-v8": "^1.2.2",
53
47
  "@vitest/ui": "^1.2.2",
54
48
  "c8": "^9.1.0",
@@ -56,9 +50,14 @@
56
50
  "rimraf": "~5.0.5",
57
51
  "typescript": "~5.3.3",
58
52
  "vitest": "^1.2.2",
53
+ "@typespec/eslint-config-typespec": "~0.54.0",
54
+ "@typespec/compiler": "~0.54.0",
55
+ "@typespec/eslint-plugin": "~0.54.0",
56
+ "@typespec/http": "~0.54.0",
57
+ "@typespec/library-linter": "~0.54.0",
58
+ "@typespec/rest": "~0.54.0",
59
59
  "@typespec/tspd": "~0.46.0"
60
60
  },
61
- "dependencies": {},
62
61
  "scripts": {
63
62
  "clean": "rimraf ./dist ./temp",
64
63
  "build": "tsc -p . && npm run lint-typespec-library",