Skip to content

Pass the OpenAPI document to the constructor of the context class #968

@pmcelhaney

Description

@pmcelhaney

It may be useful to pass the OpenAPI document to the constructor of the Context class (exported from _.context.ts).

It's a relatively simple change:

  1. Pass the openApiDocument object to ModuleLoader in app.ts
  2. Pass it down to the context object on in module-loader.ts.

(These instructions are two years old so things might have shifted slightly.)

Originally posted by @pmcelhaney in #749 (comment)

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions