@typespec/openapi3 0.60.0-dev.1 → 0.60.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.
@@ -9,4 +9,8 @@ export type OneOfDecorator = (context: DecoratorContext, target: Union | ModelPr
9
9
  * @param ref External reference(e.g. "../../common.json#/components/schemas/Foo")
10
10
  */
11
11
  export type UseRefDecorator = (context: DecoratorContext, target: Model | ModelProperty, ref: string) => void;
12
+ export type TypeSpecOpenAPIDecorators = {
13
+ oneOf: OneOfDecorator;
14
+ useRef: UseRefDecorator;
15
+ };
12
16
  //# sourceMappingURL=TypeSpec.OpenAPI.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TypeSpec.OpenAPI.d.ts","sourceRoot":"","sources":["../../generated-defs/TypeSpec.OpenAPI.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAExF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,GAAG,aAAa,KAAK,IAAI,CAAC;AAEhG;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,CAC5B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,aAAa,EAC7B,GAAG,EAAE,MAAM,KACR,IAAI,CAAC"}
1
+ {"version":3,"file":"TypeSpec.OpenAPI.d.ts","sourceRoot":"","sources":["../../generated-defs/TypeSpec.OpenAPI.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAExF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,GAAG,aAAa,KAAK,IAAI,CAAC;AAEhG;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,CAC5B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,aAAa,EAC7B,GAAG,EAAE,MAAM,KACR,IAAI,CAAC;AAEV,MAAM,MAAM,yBAAyB,GAAG;IACtC,KAAK,EAAE,cAAc,CAAC;IACtB,MAAM,EAAE,eAAe,CAAC;CACzB,CAAC"}
@@ -1,8 +1,5 @@
1
1
  /** An error here would mean that the decorator is not exported or doesn't have the right name. */
2
- import { $oneOf, $useRef } from "@typespec/openapi3";
2
+ import { $decorators } from "@typespec/openapi3";
3
3
  /** An error here would mean that the exported decorator is not using the same signature. Make sure to have export const $decName: DecNameDecorator = (...) => ... */
4
- const _ = {
5
- $oneOf,
6
- $useRef,
7
- };
4
+ const _ = $decorators["TypeSpec.OpenAPI"];
8
5
  //# sourceMappingURL=TypeSpec.OpenAPI.ts-test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TypeSpec.OpenAPI.ts-test.js","sourceRoot":"","sources":["../../generated-defs/TypeSpec.OpenAPI.ts-test.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAQrD,qKAAqK;AACrK,MAAM,CAAC,GAAe;IACpB,MAAM;IACN,OAAO;CACR,CAAC"}
1
+ {"version":3,"file":"TypeSpec.OpenAPI.ts-test.js","sourceRoot":"","sources":["../../generated-defs/TypeSpec.OpenAPI.ts-test.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,qKAAqK;AACrK,MAAM,CAAC,GAA8B,WAAW,CAAC,kBAAkB,CAAC,CAAC"}
@@ -3,4 +3,5 @@ export { convertOpenAPI3Document } from "./cli/actions/convert/convert.js";
3
3
  export * from "./decorators.js";
4
4
  export { $lib } from "./lib.js";
5
5
  export * from "./openapi.js";
6
+ export { $decorators } from "./tsp-index.js";
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,qBAAqB,CAAC;AAE5C,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,qBAAqB,CAAC;AAE5C,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
package/dist/src/index.js CHANGED
@@ -3,4 +3,5 @@ export { convertOpenAPI3Document } from "./cli/actions/convert/convert.js";
3
3
  export * from "./decorators.js";
4
4
  export { $lib } from "./lib.js";
5
5
  export * from "./openapi.js";
6
+ export { $decorators } from "./tsp-index.js";
6
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAAG,kBAAkB,CAAC;AAE5C,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAAG,kBAAkB,CAAC;AAE5C,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { $lib } from "./lib.js";
2
+ //# sourceMappingURL=tsp-index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tsp-index.d.ts","sourceRoot":"","sources":["../../src/tsp-index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { $oneOf, $useRef } from "./decorators.js";
2
+ export { $lib } from "./lib.js";
3
+ /** @internal */
4
+ export const $decorators = {
5
+ "TypeSpec.OpenAPI": {
6
+ useRef: $useRef,
7
+ oneOf: $oneOf,
8
+ },
9
+ };
10
+ //# sourceMappingURL=tsp-index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tsp-index.js","sourceRoot":"","sources":["../../src/tsp-index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAEhC,gBAAgB;AAChB,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,kBAAkB,EAAE;QAClB,MAAM,EAAE,OAAO;QACf,KAAK,EAAE,MAAM;KACsB;CACtC,CAAC"}
@@ -1,4 +1,4 @@
1
- import "../dist/src/index.js";
1
+ import "../dist/src/tsp-index.js";
2
2
 
3
3
  namespace TypeSpec.OpenAPI;
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typespec/openapi3",
3
- "version": "0.60.0-dev.1",
3
+ "version": "0.60.0-dev.2",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec library for emitting OpenAPI 3.0 from the TypeSpec REST protocol binding and converting OpenAPI3 to TypeSpec",
6
6
  "homepage": "https://typespec.io",