Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 406 Bytes

File metadata and controls

16 lines (13 loc) · 406 Bytes
counterfact minor

Pass the OpenAPI document to the Context class constructor in _.context.ts.

The Context constructor now receives an openApiDocument property alongside the existing loadContext and readJson helpers:

// routes/_.context.ts
export class Context {
  constructor({ openApiDocument, loadContext, readJson }) {
    this.openApiDocument = openApiDocument;
  }
}