license介绍

name type must comment
license object y 许可证
license.type string y 许可证类型
license.description string n 许可描述
license.version string y 许可版本
license.parameters object y 许可证参数对象,自定义内容
license.parameters.name string y 许可条款名称
license.parameters.description string y 许可条款描述
license.parameters.type string y 许可条款类型select,decimal,timestamp
license.parameters.values string y 许可条款选值

license定义

cc协议

针对需要cc协议的内容的定义

{
  "type": "cc",
  "description": "Creative Commons",
  "version": "4.0",
  "parameters": [
    {
      "name": "adaptation",
      "description": "是否允许演绎",
      "type": "select",
      "values": "y,n,sa"
    },
    {
      "name": "commercial",
      "description": "是否允许商用",
      "type": "select",
      "values": "y,n"
    },
    {
      "name": "expire",
      "description": "有效期",
      "type": "timestamp",
      "values": "0"
    },
    {
      "name": "price",
      "description": "授权价格",
      "type": "decimal",
      "values": "0"
    }
  ]
}

none 协议

针对不需要license的metadata中的license定义

{
  "type": "none",
  "description": "none license",
  "version": "1.0"
}

example

license: {
    type: "cc",
    parameters: {
        adaptation: "y",
        commercial: "n",
        expire: "13937837329"
    }
}