OpenApiLicense Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
License Object.
public class OpenApiLicense : Microsoft.OpenApi.Interfaces.IOpenApiExtensible, Microsoft.OpenApi.Interfaces.IOpenApiSerializable
type OpenApiLicense = class
interface IOpenApiSerializable
interface IOpenApiElement
interface IOpenApiExtensible
Public Class OpenApiLicense
Implements IOpenApiExtensible, IOpenApiSerializable
- Inheritance
-
OpenApiLicense
- Implements
Constructors
OpenApiLicense() |
Parameterless constructor |
OpenApiLicense(OpenApiLicense) |
Initializes a copy of an OpenApiLicense object |
Properties
Extensions |
This object MAY be extended with Specification Extensions. |
Name |
REQUIRED. The license name used for the API. |
Url |
The URL pointing to the contact information. MUST be in the format of a URL. |
Methods
SerializeAsV2(IOpenApiWriter) |
Serialize OpenApiLicense to Open Api v2.0 |
SerializeAsV3(IOpenApiWriter) |
Serialize OpenApiLicense to Open Api v3.0 |
Extension Methods
Validate(IOpenApiElement, ValidationRuleSet) |
Validate element and all child elements |