Last updated

license

Field NameTypeDescription
namestringREQUIRED. The license name used for the API.
identifierstringAn SPDX license expression for the API. The identifier field is mutually exclusive of the url field.
urlstringThe URL pointing to the contact information.
emailstringThe email address of the contact person or organization.

Visuals

license example

The following shows a license example.

info:
  title: Example
  version: ''
  description: |
    # My API description in Markdown

    This is a sample of an info description.
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT

info license

Types

const License: NodeType = {
  properties: {
    name: { type: 'string' },
    url: { type: 'string' },
  },
  required: ['name'],
};