GitHub · JSON Structure

Github Licenses License Structure

License

Type: object Properties: 13 Required: 13
CodePipelinesPlatformSoftware DevelopmentSource ControlT1

license is a JSON Structure definition published by GitHub, describing 13 properties, of which 13 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

key name spdx_id url node_id html_url description implementation permissions conditions limitations body featured

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/github/refs/heads/main/json-structure/github-licenses-license-structure.json",
  "name": "license",
  "description": "License",
  "type": "object",
  "properties": {
    "key": {
      "type": "string",
      "example": "mit"
    },
    "name": {
      "type": "string",
      "example": "MIT License"
    },
    "spdx_id": {
      "type": "string",
      "example": "MIT",
      "nullable": true
    },
    "url": {
      "type": "uri",
      "example": "https://api.github.com/licenses/mit",
      "nullable": true
    },
    "node_id": {
      "type": "string",
      "example": "MDc6TGljZW5zZW1pdA=="
    },
    "html_url": {
      "type": "uri",
      "example": "http://choosealicense.com/licenses/mit/"
    },
    "description": {
      "type": "string",
      "example": "A permissive license that is short and to the point. It lets people do anything with your code with proper attribution and without warranty."
    },
    "implementation": {
      "type": "string",
      "example": "Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders."
    },
    "permissions": {
      "type": "array",
      "example": [
        "commercial-use",
        "modifications",
        "distribution",
        "sublicense",
        "private-use"
      ],
      "items": {
        "type": "string"
      }
    },
    "conditions": {
      "type": "array",
      "example": [
        "include-copyright"
      ],
      "items": {
        "type": "string"
      }
    },
    "limitations": {
      "type": "array",
      "example": [
        "no-liability"
      ],
      "items": {
        "type": "string"
      }
    },
    "body": {
      "type": "string",
      "example": "\n\nThe MIT License (MIT)\n\nCopyright (c) [year] [fullname]\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
    },
    "featured": {
      "type": "boolean",
      "example": true
    }
  },
  "required": [
    "key",
    "name",
    "url",
    "spdx_id",
    "node_id",
    "html_url",
    "description",
    "implementation",
    "permissions",
    "conditions",
    "limitations",
    "body",
    "featured"
  ]
}