Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add getOpenAPI3 to OpenAPI3 emitter #2950

Merged
merged 15 commits into from
Feb 26, 2024
Merged
7 changes: 7 additions & 0 deletions .chronus/changes/openapi3-function-2024-1-23-14-2-48.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: feature
packages:
- "@typespec/openapi3"
---

Add `getOpenAPI3` function that takes a TypeSpec program and returns the emitted OpenAPI as an object. Useful for other emitters and tools that want to work with emitted OpenAPI directly without writing it to disk.
7 changes: 7 additions & 0 deletions .chronus/changes/openapi3-function-2024-1-26-14-26-10.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: feature
packages:
- "@typespec/versioning"
---

Export the VersionProjections interface.
2 changes: 1 addition & 1 deletion packages/openapi3/src/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,6 @@ export const libDef = {
} as const;

export const $lib = createTypeSpecLibrary(libDef);
export const { reportDiagnostic, createStateSymbol } = $lib;
export const { createDiagnostic, reportDiagnostic, createStateSymbol } = $lib;

export type OpenAPILibrary = typeof $lib;
Loading
Loading