|
| 1 | +--- |
| 2 | +external help file: schema-help.xml |
| 3 | +Module Name: schema |
| 4 | +online version: https://github.com/SchemaModule/PowerShell/blob/master/docs/New-SchemaBoolean.md#new-schemaboolean |
| 5 | +schema: 2.0.0 |
| 6 | +--- |
| 7 | + |
| 8 | +# New-SchemaBoolean |
| 9 | + |
| 10 | +## SYNOPSIS |
| 11 | + |
| 12 | +A function to create new Schema Boolean object |
| 13 | + |
| 14 | +## SYNTAX |
| 15 | + |
| 16 | +``` |
| 17 | +New-SchemaBoolean [-id <String>] [-ref <String>] [-title <String>] [-description <String>] [-default <Boolean>] |
| 18 | + [-WhatIf] [-Confirm] [<CommonParameters>] |
| 19 | +``` |
| 20 | + |
| 21 | +## DESCRIPTION |
| 22 | + |
| 23 | +A function to create new Schema Boolean object |
| 24 | + |
| 25 | +## EXAMPLES |
| 26 | + |
| 27 | +### Example 1 |
| 28 | + |
| 29 | +```powershell |
| 30 | +New-SchemaBoolean -title ExteriorAccess -description "Does the room have an exterior door" -default $false |
| 31 | +
|
| 32 | +
|
| 33 | +$id : |
| 34 | +title : ExteriorAccess |
| 35 | +description : Does the room have an exterior door |
| 36 | +default : False |
| 37 | +``` |
| 38 | + |
| 39 | +A simple example of usage |
| 40 | + |
| 41 | +## PARAMETERS |
| 42 | + |
| 43 | +### -default |
| 44 | + |
| 45 | +The default keyword specifies a default value for an item. |
| 46 | + |
| 47 | +```yaml |
| 48 | +Type: System.Boolean |
| 49 | +Parameter Sets: (All) |
| 50 | +Aliases: |
| 51 | + |
| 52 | +Required: False |
| 53 | +Position: Named |
| 54 | +Default value: None |
| 55 | +Accept pipeline input: False |
| 56 | +Accept wildcard characters: False |
| 57 | +``` |
| 58 | +
|
| 59 | +### -description |
| 60 | +
|
| 61 | +The title and description keywords must be strings. A "description" will provide |
| 62 | +a more lengthy explanation about the purpose of the data described by the schema |
| 63 | +
|
| 64 | +```yaml |
| 65 | +Type: System.String |
| 66 | +Parameter Sets: (All) |
| 67 | +Aliases: |
| 68 | + |
| 69 | +Required: False |
| 70 | +Position: Named |
| 71 | +Default value: None |
| 72 | +Accept pipeline input: False |
| 73 | +Accept wildcard characters: False |
| 74 | +``` |
| 75 | +
|
| 76 | +### -id |
| 77 | +
|
| 78 | +The $id property is a URI-reference that serves two purposes, it declares a |
| 79 | +unique identifier for the schema and it declares a base URI against which $ref |
| 80 | +URI-references are resolved. |
| 81 | +
|
| 82 | +```yaml |
| 83 | +Type: System.String |
| 84 | +Parameter Sets: (All) |
| 85 | +Aliases: |
| 86 | + |
| 87 | +Required: False |
| 88 | +Position: Named |
| 89 | +Default value: None |
| 90 | +Accept pipeline input: False |
| 91 | +Accept wildcard characters: False |
| 92 | +``` |
| 93 | +
|
| 94 | +### -ref |
| 95 | +
|
| 96 | +The $id property is a URI-reference that serves two purposes, it declares a |
| 97 | +unique identifier for the schema and it declares a base URI against which $ref |
| 98 | +URI-references are resolved. |
| 99 | +
|
| 100 | +```yaml |
| 101 | +Type: System.String |
| 102 | +Parameter Sets: (All) |
| 103 | +Aliases: |
| 104 | + |
| 105 | +Required: False |
| 106 | +Position: Named |
| 107 | +Default value: None |
| 108 | +Accept pipeline input: False |
| 109 | +Accept wildcard characters: False |
| 110 | +``` |
| 111 | +
|
| 112 | +### -title |
| 113 | +
|
| 114 | +The title and description keywords must be strings. A "title" will preferably be |
| 115 | +short explanation about the purpose of the data described by the schema. |
| 116 | +
|
| 117 | +```yaml |
| 118 | +Type: System.String |
| 119 | +Parameter Sets: (All) |
| 120 | +Aliases: |
| 121 | + |
| 122 | +Required: False |
| 123 | +Position: Named |
| 124 | +Default value: None |
| 125 | +Accept pipeline input: False |
| 126 | +Accept wildcard characters: False |
| 127 | +``` |
| 128 | +
|
| 129 | +### -Confirm |
| 130 | +
|
| 131 | +Prompts you for confirmation before running the cmdlet. |
| 132 | +
|
| 133 | +```yaml |
| 134 | +Type: System.Management.Automation.SwitchParameter |
| 135 | +Parameter Sets: (All) |
| 136 | +Aliases: cf |
| 137 | + |
| 138 | +Required: False |
| 139 | +Position: Named |
| 140 | +Default value: None |
| 141 | +Accept pipeline input: False |
| 142 | +Accept wildcard characters: False |
| 143 | +``` |
| 144 | +
|
| 145 | +### -WhatIf |
| 146 | +
|
| 147 | +Shows what would happen if the cmdlet runs. |
| 148 | +The cmdlet is not run. |
| 149 | +
|
| 150 | +```yaml |
| 151 | +Type: System.Management.Automation.SwitchParameter |
| 152 | +Parameter Sets: (All) |
| 153 | +Aliases: wi |
| 154 | + |
| 155 | +Required: False |
| 156 | +Position: Named |
| 157 | +Default value: None |
| 158 | +Accept pipeline input: False |
| 159 | +Accept wildcard characters: False |
| 160 | +``` |
| 161 | +
|
| 162 | +### CommonParameters |
| 163 | +
|
| 164 | +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). |
| 165 | +
|
| 166 | +## INPUTS |
| 167 | +
|
| 168 | +### None |
| 169 | +
|
| 170 | +## OUTPUTS |
| 171 | +
|
| 172 | +### schemaBoolean |
| 173 | +
|
| 174 | +The boolean type matches only two special values: true and false. Note that |
| 175 | +values that evaluate to true or false, such as 1 and 0, are not accepted by |
| 176 | +the schema. |
| 177 | +
|
| 178 | +[Schema Boolean](http://json-schema.org/understanding-json-schema/reference/boolean.html) |
| 179 | +
|
| 180 | +[Schema Types](https://json-schema.org/understanding-json-schema/reference/type.html) |
| 181 | +
|
| 182 | +## NOTES |
| 183 | +
|
| 184 | +## RELATED LINKS |
| 185 | +
|
| 186 | +[New-SchemaElement](https://github.com/SchemaModule/PowerShell/blob/master/docs/New-SchemaElement.md#new-schemaelement) |
| 187 | +
|
| 188 | +[About Classes](https://github.com/SchemaModule/PowerShell/blob/master/docs/about_Schema_Classes.md) |
| 189 | +
|
| 190 | +[JSON Schema Reference](https://json-schema.org/understanding-json-schema/reference/index.html) |
0 commit comments