Compartilhar via


OpenApiReferenceResolver Class

Definition

This class is used to walk an OpenApiDocument and convert unresolved references to references to populated objects

public class OpenApiReferenceResolver : Microsoft.OpenApi.Services.OpenApiVisitorBase
type OpenApiReferenceResolver = class
    inherit OpenApiVisitorBase
Public Class OpenApiReferenceResolver
Inherits OpenApiVisitorBase
Inheritance
OpenApiReferenceResolver

Constructors

OpenApiReferenceResolver(OpenApiDocument, Boolean)

Initializes the OpenApiReferenceResolver class.

Properties

CurrentKeys

Properties available to identify context of where an object is within OpenAPI Document

(Inherited from OpenApiVisitorBase)
Errors

List of errors related to the OpenApiDocument

PathString

Pointer to source of validation error in document

(Inherited from OpenApiVisitorBase)

Methods

Enter(String)

Allow Rule to indicate validation error occured at a deeper context level.

(Inherited from OpenApiVisitorBase)
Exit()

Exit from path context elevel. Enter and Exit calls should be matched.

(Inherited from OpenApiVisitorBase)
Visit(IDictionary<OperationType,OpenApiOperation>)

Visits the operations.

(Inherited from OpenApiVisitorBase)
Visit(IDictionary<String,OpenApiCallback>)

Resolves all references used in callbacks

Visit(IDictionary<String,OpenApiEncoding>)

Visits a dictionary of encodings

(Inherited from OpenApiVisitorBase)
Visit(IDictionary<String,OpenApiExample>)

Resolve all references to examples

Visit(IDictionary<String,OpenApiHeader>)

Resolve all references to headers

Visit(IDictionary<String,OpenApiLink>)

Resolve all references to links

Visit(IDictionary<String,OpenApiMediaType>)

Visits media type content.

(Inherited from OpenApiVisitorBase)
Visit(IDictionary<String,OpenApiServerVariable>)

Visits a dictionary of server variables

(Inherited from OpenApiVisitorBase)
Visit(IList<OpenApiExample>)

Visits list of OpenApiExample

(Inherited from OpenApiVisitorBase)
Visit(IList<OpenApiParameter>)

Resolve all references to parameters

Visit(IList<OpenApiSecurityRequirement>)

Visits list of OpenApiSecurityRequirement

(Inherited from OpenApiVisitorBase)
Visit(IList<OpenApiServer>)

Visits list of OpenApiServer

(Inherited from OpenApiVisitorBase)
Visit(IList<OpenApiTag>)

Visits list of OpenApiTag

(Inherited from OpenApiVisitorBase)
Visit(IOpenApiExtensible)

Visits IOpenApiExtensible

(Inherited from OpenApiVisitorBase)
Visit(IOpenApiExtension)

Visits IOpenApiExtension

(Inherited from OpenApiVisitorBase)
Visit(IOpenApiReferenceable)

Visits the referenceable element in the host document

Visit(OpenApiCallback)

Visits OpenApiCallback

(Inherited from OpenApiVisitorBase)
Visit(OpenApiComponents)

Resolves references in components

Visit(OpenApiContact)

Visits OpenApiContact

(Inherited from OpenApiVisitorBase)
Visit(OpenApiDocument)

Resolves tags in OpenApiDocument

Visit(OpenApiEncoding)

Visits OpenApiEncoding

(Inherited from OpenApiVisitorBase)
Visit(OpenApiExample)

Visits OpenApiExample

(Inherited from OpenApiVisitorBase)
Visit(OpenApiExternalDocs)

Visits OpenApiComponents

(Inherited from OpenApiVisitorBase)
Visit(OpenApiHeader)

Visits OpenApiHeader

(Inherited from OpenApiVisitorBase)
Visit(OpenApiInfo)

Visits OpenApiInfo

(Inherited from OpenApiVisitorBase)
Visit(OpenApiLicense)

Visits OpenApiLicense

(Inherited from OpenApiVisitorBase)
Visit(OpenApiLink)

Visits OpenApiLink

(Inherited from OpenApiVisitorBase)
Visit(OpenApiMediaType)

Resolve all references using in mediaType object

Visit(OpenApiOAuthFlow)

Visits OpenApiOAuthFlow

(Inherited from OpenApiVisitorBase)
Visit(OpenApiOperation)

Resolve all references used in an operation

Visit(OpenApiParameter)

Resolve all references used in a parameter

Visit(OpenApiPathItem)

Visits OpenApiPathItem

(Inherited from OpenApiVisitorBase)
Visit(OpenApiPaths)

Visits OpenApiPaths

(Inherited from OpenApiVisitorBase)
Visit(OpenApiRequestBody)

Visits OpenApiRequestBody

(Inherited from OpenApiVisitorBase)
Visit(OpenApiResponse)

Visits OpenApiResponse

(Inherited from OpenApiVisitorBase)
Visit(OpenApiResponses)

Resolve all references to responses

Visit(OpenApiSchema)

Resolve all references used in a schema

Visit(OpenApiSecurityRequirement)

Resolve all references to SecuritySchemes

Visit(OpenApiSecurityScheme)

Visits OpenApiSecurityScheme

(Inherited from OpenApiVisitorBase)
Visit(OpenApiServer)

Visits OpenApiServer

(Inherited from OpenApiVisitorBase)
Visit(OpenApiServerVariable)

Visits OpenApiServerVariable

(Inherited from OpenApiVisitorBase)
Visit(OpenApiTag)

Visits OpenApiTag

(Inherited from OpenApiVisitorBase)

Applies to