github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/provider-config-schema/schema.json (about)

     1  {
     2    "version": "0.0.1",
     3    "name": "configstation",
     4    "provider": {
     5      "inputProperties": {
     6        "favoriteColor": {
     7          "description": "this is a relaxed string enum which can also be set via env var",
     8          "oneOf": [
     9            {
    10              "type": "string"
    11            },
    12            {
    13              "$ref": "#/types/configstation:index:color"
    14            }
    15          ],
    16          "defaultInfo": {
    17            "environment": ["FAVE_COLOR"]
    18          }
    19        }
    20      }
    21    },
    22    "config": {
    23      "variables": {
    24        "name": {
    25          "type": "string"
    26        },
    27        "numberOfSheep": {
    28          "type": "integer"
    29        },
    30        "isMember": {
    31          "type": "boolean",
    32          "default": true
    33        },
    34        "favoritePlants": {
    35          "type": "array",
    36          "items": {
    37            "type": "string"
    38          }
    39        },
    40        "secretCode": {
    41          "type": "string",
    42          "description": "This is a huge secret",
    43          "defaultInfo": {
    44            "environment": ["SECRET_CODE", "MY_SUPER_SECRET_CODE"]
    45          }
    46        },
    47        "favoriteSandwich": {
    48          "$ref": "#/types/configstation:config:sandwich",
    49          "description": "omg my favorite sandwich"
    50        },
    51        "kids": {
    52          "$ref": "#/types/configstation:index:child"
    53        }
    54      },
    55      "defaults": ["name"]
    56    },
    57    "functions":{
    58      "configstation::funcWithAllOptionalInputs": {
    59         "description": "Check codegen of functions with all optional inputs.",
    60         "inputs": {
    61           "type": "object",
    62           "properties": {
    63             "a": {
    64              "type": "string",
    65              "description": "Property A"
    66             },
    67             "b": {
    68              "type": "string",
    69              "description": "Property B"
    70             }
    71           }
    72         },
    73         "outputs": {
    74           "properties": {
    75             "r": {
    76               "type": "string"
    77             }
    78           },
    79          "type": "object",
    80          "required": [
    81            "r"
    82          ]
    83        }
    84      }
    85    },
    86    "types": {
    87      "configstation:config:sandwich": {
    88        "properties": {
    89          "bread": {
    90            "type": "string"
    91          },
    92          "veggies": {
    93            "type": "array",
    94            "items": {
    95              "type": "string"
    96            }
    97          }
    98        },
    99        "type": "object"
   100      },
   101      "configstation:index:child": {
   102        "properties": {
   103          "name": {
   104            "type": "string"
   105          },
   106          "age": {
   107            "type": "integer"
   108          }
   109        },
   110        "type": "object"
   111      },
   112      "configstation:index:color": {
   113        "enum": [
   114          {"value": "blue"},
   115          {"value": "red"}
   116        ],
   117        "type": "string"
   118      }
   119    },
   120    "language": {
   121      "csharp": {
   122        "rootNamespace": "Configstation.Pulumi",
   123        "packageReferences": {
   124          "Pulumi": "3.12"
   125        }
   126      },
   127      "go": {
   128        "generateExtraInputTypes": true
   129      },
   130      "nodejs": {
   131        "dependencies": {
   132          "@pulumi/pulumi": "^3.12"
   133        },
   134        "devDependencies": {
   135          "typescript": "^3.7.0"
   136        }
   137      },
   138      "python": {}
   139    }
   140  }