Zuplo logo

Open API from ZuploContext

Changelog entry for Open API from ZuploContext

Open API from ZuploContext

The context.route property on the ZuploContext object now exposes the raw Open API operation JSON for use in handlers or policies.

export async function myHandler(request: ZuploRequest, context: ZuploContext) {
  const raw = context.route.raw();
  return raw;
}