William Cheng a7e92786df
[PowerShell] add more tests to powershell client (#12057)
* add more tests to powershell client

* update spec

* update method name

* add new file
2022-04-06 10:24:32 +08:00

2.0 KiB

User

Properties

Name Type Description Notes
Id Int64 [optional]
Username String [optional]
FirstName String [optional]
LastName String [optional]
Email String [optional]
Password String [optional]
Phone String [optional]
UserStatus Int32 User Status [optional]
ObjectWithNoDeclaredProps SystemCollectionsHashtable test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. [optional]
ObjectWithNoDeclaredPropsNullable SystemCollectionsHashtable test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. [optional]
AnyTypeProp AnyType test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 [optional]
AnyTypePropNullable AnyType test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The 'nullable' attribute does not change the allowed values. [optional]

Examples

  • Prepare the resource
$User = Initialize-PSPetstoreUser  -Id null `
 -Username null `
 -FirstName null `
 -LastName null `
 -Email null `
 -Password null `
 -Phone null `
 -UserStatus null `
 -ObjectWithNoDeclaredProps null `
 -ObjectWithNoDeclaredPropsNullable null `
 -AnyTypeProp null `
 -AnyTypePropNullable null
  • Convert the resource to JSON
$User | ConvertTo-JSON

[Back to Model list] [Back to API list] [Back to README]