Skip to content

Export Oas3Visitor type definitions #2280

@jooola

Description

@jooola

Is your feature request related to a problem? Please describe.

Having access to e.g. the visitor config types definition, would greatly help when developing a local plugin. I always struggle to discover how the API is shaped and what possibilities I have to accomplish a transformation.

Other types for anything a user can plug into redocly.

Describe the solution you'd like

Export more types that would be helpful for developing local plugins.

Describe alternatives you've considered

I tried digging into the Plugin type that is exported, but I didn't manage to access all the types that I needed.

import type { Plugin as RedoclyPlugin } from "@redocly/openapi-core";

export type Plugin = RedoclyPlugin;
export type Decorators = NonNullable<Plugin["decorators"]>
export type Oas3DecoratorsSet = NonNullable<Decorators["oas3"]>

Additional context

 "@redocly/cli": "2.0.8",

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions