get.porter.sh/porter@v1.3.0/pkg/cnab/testdata/bundle-unsupported-required.json (about)

     1  {
     2    "name": "foo",
     3    "version": "1.0",
     4    "schemaVersion": "99.99",
     5    "invocationImages": [
     6      {
     7        "imageType": "docker",
     8        "image": "technosophos/helloworld:0.1.0"
     9      }
    10    ],
    11    "images": {
    12      "image1": {
    13        "description": "image1",
    14        "image": "urn:image1uri",
    15        "refs": [
    16          {
    17            "path": "image1path",
    18            "field": "image.1.field"
    19          }
    20        ]
    21      },
    22      "image2": {
    23        "name": "image2",
    24        "uri": "urn:image2uri",
    25        "refs": [
    26          {
    27            "path": "image2path",
    28            "field": "image.2.field"
    29          }
    30        ]
    31      }
    32    },
    33    "credentials": {
    34      "foo": {
    35        "path": "pfoo"
    36      },
    37      "bar": {
    38        "env": "ebar"
    39      },
    40      "quux": {
    41        "path": "pquux",
    42        "env": "equux"
    43      }
    44    },
    45    "requiredExtensions": [
    46      "donuts"
    47    ],
    48    "custom": {
    49      "com.example.duffle-bag": {
    50        "icon": "https://example.com/icon.png",
    51        "iconType": "PNG"
    52      },
    53      "com.example.backup-preferences": {
    54        "enabled": true,
    55        "frequency": "daily"
    56      },
    57      "io.cnab.dependencies": {
    58        "requires": {
    59          "storage": {
    60            "bundle": "somecloud/blob-storage"
    61          },
    62          "mysql": {
    63            "bundle": "somecloud/mysql",
    64            "version": {
    65              "prereleases": true,
    66              "ranges": [
    67                "5.7.x"
    68              ]
    69            }
    70          }
    71        }
    72      }
    73    },
    74    "definitions": {
    75      "complexThing": {
    76        "type": "object",
    77        "properties": {
    78          "host": {
    79            "default": "localhost",
    80            "type": "string",
    81            "minLength": 3,
    82            "maxLength": 10
    83          },
    84          "port": {
    85            "type": "integer",
    86            "minimum": 8000
    87          }
    88        },
    89        "required": [
    90          "port"
    91        ]
    92      }
    93    },
    94    "parameters": {
    95      "serverConfig": {
    96        "definition": "complexThing",
    97        "destination": {
    98          "path": "/cnab/is/go"
    99        }
   100      }
   101    }
   102  }