forked from loafle/openapi-generator-original
1.7 KiB
1.7 KiB
NullableClass
Properties
Name | Type | Description | Notes |
---|---|---|---|
IntegerProp | Int32 | [optional] | |
NumberProp | Decimal | [optional] | |
BooleanProp | Boolean | [optional] | |
StringProp | String | [optional] | |
DateProp | System.DateTime | [optional] | |
DatetimeProp | System.DateTime | [optional] | |
ArrayNullableProp | SystemCollectionsHashtable[] | [optional] | |
ArrayAndItemsNullableProp | SystemCollectionsHashtable[] | [optional] | |
ArrayItemsNullable | SystemCollectionsHashtable[] | [optional] | |
ObjectNullableProp | System.Collections.Hashtable | [optional] | |
ObjectAndItemsNullableProp | System.Collections.Hashtable | [optional] | |
ObjectItemsNullable | System.Collections.Hashtable | [optional] |
Examples
- Prepare the resource
$NullableClass = Initialize-PSPetstoreNullableClass -IntegerProp null `
-NumberProp null `
-BooleanProp null `
-StringProp null `
-DateProp null `
-DatetimeProp null `
-ArrayNullableProp null `
-ArrayAndItemsNullableProp null `
-ArrayItemsNullable null `
-ObjectNullableProp null `
-ObjectAndItemsNullableProp null `
-ObjectItemsNullable null
- Convert the resource to JSON
$NullableClass | ConvertTo-JSON