src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiDocumentGenerator.cs
/// <summary>
/// Create a <see cref="OpenApiDocument"/>, it's a single Open API Object.
/// </summary>
/// <param name="context">The OData to Open API context.</param>
/// <returns>The created <see cref="OpenApiDocument"/> object.</returns>
Create a , it's a single Open API Object.
Create a it ' s a single Open API Object .
public static OpenApiDocument CreateDocument(this ODataContext context)
        {
            Utils.CheckArgumentNull(context, nameof(context));
            OpenApiDocument doc = new OpenApiDocument
            {
                Info = context.CreateInfo(),
                Servers = context.CreateServers(),
                Paths = context.CreatePaths(),
                Components = context.CreateComponents(),
                SecurityRequirements = null,
                ExternalDocs = null
            };
            doc.Tags = context.CreateTags();
            return doc;
        }
public static OpenApiDocument CreateDocument ( this ODataContext context ) { Utils . CheckArgumentNull ( context , nameof ( context ) ) ; OpenApiDocument doc = new OpenApiDocument { Info = context . CreateInfo ( ) , Servers = context . CreateServers ( ) , Paths = context . CreatePaths ( ) , Components = context . CreateComponents ( ) , SecurityRequirements = null , ExternalDocs = null } ; doc . Tags = context . CreateTags ( ) ; return doc ; }
Create a , it's a single Open API Object.
Create a it ' s a single Open API Object .
// An OAS document consists of a single OpenAPI Object represented as OpenApiDocument object. // { //   "openapi":"3.0.0", //   "info": …, //   "servers": …, //   "tags": …, //   "paths": …, //   "components": … // } //   Tags = context.CreateTags(),
The created  object.
The created object .
ODataContext
this
context
The OData to Open API context.
The OData to Open API context .