Replace powershell generator with powershell-experimental generator (#6213)

* replace powershell generator with powershell-experimental generator

* add back samples

* add back scripts

* remove outdated script

* update doc
This commit is contained in:
William Cheng
2020-05-08 20:13:01 +08:00
committed by GitHub
parent 6e619e0a15
commit f327f01c19
118 changed files with 1423 additions and 2408 deletions

View File

@@ -0,0 +1,17 @@
#
# OpenAPI Petstore
# This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
# Version: 1.0.0
# Generated by OpenAPI Generator: https://openapi-generator.tech
#
Describe -tag 'PSPetstore' -name 'ApiResponse' {
Context 'ApiResponse' {
It 'New-ApiResponse' {
# a simple test to create an object
#$NewObject = New-ApiResponse -Code "TEST_VALUE" -Type "TEST_VALUE" -Message "TEST_VALUE"
#$NewObject | Should BeOfType ApiResponse
#$NewObject.property | Should Be 0
}
}
}

View File

@@ -0,0 +1,17 @@
#
# OpenAPI Petstore
# This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
# Version: 1.0.0
# Generated by OpenAPI Generator: https://openapi-generator.tech
#
Describe -tag 'PSPetstore' -name 'Category' {
Context 'Category' {
It 'New-Category' {
# a simple test to create an object
#$NewObject = New-Category -Id "TEST_VALUE" -Name "TEST_VALUE"
#$NewObject | Should BeOfType Category
#$NewObject.property | Should Be 0
}
}
}

View File

@@ -0,0 +1,17 @@
#
# OpenAPI Petstore
# This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
# Version: 1.0.0
# Generated by OpenAPI Generator: https://openapi-generator.tech
#
Describe -tag 'PSPetstore' -name 'InlineObject' {
Context 'InlineObject' {
It 'New-InlineObject' {
# a simple test to create an object
#$NewObject = New-InlineObject -Name "TEST_VALUE" -Status "TEST_VALUE"
#$NewObject | Should BeOfType InlineObject
#$NewObject.property | Should Be 0
}
}
}

View File

@@ -0,0 +1,17 @@
#
# OpenAPI Petstore
# This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
# Version: 1.0.0
# Generated by OpenAPI Generator: https://openapi-generator.tech
#
Describe -tag 'PSPetstore' -name 'InlineObject1' {
Context 'InlineObject1' {
It 'New-InlineObject1' {
# a simple test to create an object
#$NewObject = New-InlineObject1 -AdditionalMetadata "TEST_VALUE" -File "TEST_VALUE"
#$NewObject | Should BeOfType InlineObject1
#$NewObject.property | Should Be 0
}
}
}

View File

@@ -0,0 +1,17 @@
#
# OpenAPI Petstore
# This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
# Version: 1.0.0
# Generated by OpenAPI Generator: https://openapi-generator.tech
#
Describe -tag 'PSPetstore' -name 'Order' {
Context 'Order' {
It 'New-Order' {
# a simple test to create an object
#$NewObject = New-Order -Id "TEST_VALUE" -PetId "TEST_VALUE" -Quantity "TEST_VALUE" -ShipDate "TEST_VALUE" -Status "TEST_VALUE" -Complete "TEST_VALUE"
#$NewObject | Should BeOfType Order
#$NewObject.property | Should Be 0
}
}
}

View File

@@ -0,0 +1,17 @@
#
# OpenAPI Petstore
# This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
# Version: 1.0.0
# Generated by OpenAPI Generator: https://openapi-generator.tech
#
Describe -tag 'PSPetstore' -name 'Pet' {
Context 'Pet' {
It 'New-Pet' {
# a simple test to create an object
#$NewObject = New-Pet -Id "TEST_VALUE" -Category "TEST_VALUE" -Name "TEST_VALUE" -PhotoUrls "TEST_VALUE" -Tags "TEST_VALUE" -Status "TEST_VALUE"
#$NewObject | Should BeOfType Pet
#$NewObject.property | Should Be 0
}
}
}

View File

@@ -0,0 +1,17 @@
#
# OpenAPI Petstore
# This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
# Version: 1.0.0
# Generated by OpenAPI Generator: https://openapi-generator.tech
#
Describe -tag 'PSPetstore' -name 'Tag' {
Context 'Tag' {
It 'New-Tag' {
# a simple test to create an object
#$NewObject = New-Tag -Id "TEST_VALUE" -Name "TEST_VALUE"
#$NewObject | Should BeOfType Tag
#$NewObject.property | Should Be 0
}
}
}

View File

@@ -0,0 +1,17 @@
#
# OpenAPI Petstore
# This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
# Version: 1.0.0
# Generated by OpenAPI Generator: https://openapi-generator.tech
#
Describe -tag 'PSPetstore' -name 'User' {
Context 'User' {
It 'New-User' {
# a simple test to create an object
#$NewObject = New-User -Id "TEST_VALUE" -Username "TEST_VALUE" -FirstName "TEST_VALUE" -LastName "TEST_VALUE" -Email "TEST_VALUE" -Password "TEST_VALUE" -Phone "TEST_VALUE" -UserStatus "TEST_VALUE"
#$NewObject | Should BeOfType User
#$NewObject.property | Should Be 0
}
}
}