< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.OpenApi.OpenApiOptions
Assembly: CoreWCF.WebHttp
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.WebHttp/src/CoreWCF/OpenApi/OpenApiOptions.cs
Line coverage
100%
Covered lines: 13
Uncovered lines: 0
Coverable lines: 13
Total lines: 80
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.WebHttp/src/CoreWCF/OpenApi/OpenApiOptions.cs

#LineLine coverage
 1// Licensed to the .NET Foundation under one or more agreements.
 2// The .NET Foundation licenses this file to you under the MIT license.
 3
 4using System;
 5using System.Collections.Generic;
 6using Microsoft.OpenApi.Models;
 7
 8namespace CoreWCF.OpenApi
 9{
 10    /// <summary>
 11    /// Top level information about the API.
 12    /// </summary>
 13    public sealed class OpenApiOptions
 14    {
 15        /// <summary>
 16        /// Version of the API.
 17        /// </summary>
 4418        public string Version { get; set; }
 19
 20        /// <summary>
 21        /// Description of the API.
 22        /// </summary>
 4423        public string Description { get; set; }
 24
 25        /// <summary>
 26        /// Title of the API.
 27        /// </summary>
 4428        public string Title { get; set; }
 29
 30        /// <summary>
 31        /// Terms of service of the API.
 32        /// </summary>
 4333        public Uri TermsOfService { get; set; }
 34
 35        /// <summary>
 36        /// Name of the contact.
 37        /// </summary>
 4538        public string ContactName { get; set; }
 39
 40        /// <summary>
 41        /// Url with contact information.
 42        /// </summary>
 4443        public string ContactEmail { get; set; }
 44
 45        /// <summary>
 46        /// Email used for contact.
 47        /// </summary>
 4348        public Uri ContactUrl { get; set; }
 49
 50        /// <summary>
 51        /// Name of the license used for the API.
 52        /// </summary>
 4553        public string LicenseName { get; set; }
 54
 55        /// <summary>
 56        /// URL of the license for the API.
 57        /// </summary>
 258        public Uri LiceneUrl { get; set; }
 59
 60        /// <summary>
 61        /// Description of an external document for the API.
 62        /// </summary>
 363        public string ExternalDocumentDescription { get; set; }
 64
 65        /// <summary>
 66        /// URL of an external document for an API.
 67        /// </summary>
 4468        public Uri ExternalDocumentUrl { get; set; }
 69
 70        /// <summary>
 71        /// Any tags to hide.
 72        /// </summary>
 8873        public IEnumerable<string> TagsToHide { get; set; } = new List<string>();
 74
 75        /// <summary>
 76        /// Optional callback to sort tags.
 77        /// </summary>
 4478        public IComparer<OpenApiTag> TagsSorter { get; set; }
 79    }
 80}