OpenApiDocDescriptor.AddComponentExample method

Adds a component example to the OpenAPI document.

public void AddComponentExample(string name, OpenApiExample example, 
    OpenApiComponentConflictResolution ifExists = OpenApiComponentConflictResolution.Overwrite)
parameter description
name The name of the example component.
example The example component to add.
ifExists The conflict resolution strategy if an example with the same name already exists.

See Also