src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiErrorSchemaGenerator.cs
/// <summary>
/// Create the dictionary of <see cref="OpenApiSchema"/> object.
/// The name of each pair is the namespace-qualified name of the type. It uses the namespace instead of the alias.
/// The value of each pair is a <see cref="OpenApiSchema"/>.
/// </summary>
/// <param name="context">The OData to Open API context.</param>
/// <returns>The string/schema dictionary.</returns>
Create the dictionary of  object.
The name of each pair is the namespace-qualified name of the type. It uses the namespace instead of the alias.
The value of each pair is a .
Create the dictionary of object . The name of each pair is the namespace - qualified name of the type . It uses the namespace instead of the alias . The value of each pair is a .
public static IDictionary<string, OpenApiSchema> CreateODataErrorSchemas(this ODataContext context)
        {
            Utils.CheckArgumentNull(context, nameof(context));
            IDictionary<string, OpenApiSchema> schemas = new Dictionary<string, OpenApiSchema>();
            schemas.Add("odata.error", CreateErrorSchema());
            .main
            schemas.Add("odata.error.main", CreateErrorMainSchema());
            .detail
            schemas.Add("odata.error.detail", CreateErrorDetailSchema());
            return schemas;
        }
public static IDictionary < string , OpenApiSchema > CreateODataErrorSchemas ( this ODataContext context ) { Utils . CheckArgumentNull ( context , nameof ( context ) ) ; IDictionary < string , OpenApiSchema > schemas = new Dictionary < string , OpenApiSchema > ( ) ; schemas . Add ( " " , CreateErrorSchema ( ) ) ; schemas . Add ( " " , CreateErrorMainSchema ( ) ) ; schemas . Add ( " " , CreateErrorDetailSchema ( ) ) ; return schemas ; }
Create the dictionary of  object.
Create the dictionary of object .
// odata.error // odata.error.main // odata.error.detail
The string/schema dictionary.
The string / schema dictionary .
ODataContext
this
context
The OData to Open API context.
The OData to Open API context .