Skip to content

How to access OpenApiConfigurationOptions from within the TypeVisitors #488

@rockgecko-development

Description

@rockgecko-development

For #451 , I want to be able to access the OpenApiConfigurationOptions from within the TypeVisitors. What's the best way to do that? The only way forward I can currently see is to rewire the Activator.CreateInstance calls:

.Select(p => (IVisitor)Activator.CreateInstance(p, collection)).ToList(); // NOTE: there is no direct enforcement on the constructor arguments of the visitors

to pass OpenApiConfigurationOptions as a constructor param.

Should I just do that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions