mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-07 18:26:08 +00:00
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:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
17
samples/client/petstore/powershell/tests/Model/Pet.Tests.ps1
Normal file
17
samples/client/petstore/powershell/tests/Model/Pet.Tests.ps1
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
17
samples/client/petstore/powershell/tests/Model/Tag.Tests.ps1
Normal file
17
samples/client/petstore/powershell/tests/Model/Tag.Tests.ps1
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user