Skip to content

Latest commit

History

History
179 lines (129 loc) · 3.76 KB

File metadata and controls

179 lines (129 loc) · 3.76 KB
external help fileschema-help.xml
Module Nameschema
online versionhttps://github.com/SchemaModule/PowerShell/blob/master/docs/New-SchemaBoolean.md#new-schemaboolean
schema2.0.0

New-SchemaBoolean

SYNOPSIS

A function to create new Schema Boolean object

SYNTAX

New-SchemaBoolean [-id <String>] [-ref <String>] [-title <String>] [-description <String>] [-default <Boolean>]
[-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

A function to create new Schema Boolean object

EXAMPLES

Example 1

New-SchemaBoolean-title ExteriorAccess -description "Does the room have an exterior door"-default $false$id :
title : ExteriorAccess
description : Does the room have an exterior door
default : False

A simple example of usage

PARAMETERS

-default

The default keyword specifies a default value for an item.

Type: System.BooleanParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False

-description

The title and description keywords must be strings. A "description" will provide a more lengthy explanation about the purpose of the data described by the schema

Type: System.StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False

-id

The $id property is a URI-reference that serves two purposes, it declares a unique identifier for the schema and it declares a base URI against which $ref URI-references are resolved.

Type: System.StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False

-ref

The $id property is a URI-reference that serves two purposes, it declares a unique identifier for the schema and it declares a base URI against which $ref URI-references are resolved.

Type: System.StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False

-title

The title and description keywords must be strings. A "title" will preferably be short explanation about the purpose of the data described by the schema.

Type: System.StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: System.Management.Automation.SwitchParameterParameter Sets: (All)Aliases: cfRequired: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: System.Management.Automation.SwitchParameterParameter Sets: (All)Aliases: wiRequired: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

schemaBoolean

NOTES

RELATED LINKS

New-SchemaElement

About Classes

JSON Schema Reference