Skip to content

Commit 6d82ac0

Browse files
authored
[rust]: Remove unmaintained samples and specs (#13193)
* [rust]: Remove unmaintained samples and specs * Fix checks * move test file * Fix test file
1 parent ed3666f commit 6d82ac0

File tree

126 files changed

+1599
-2168
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+1599
-2168
lines changed

bin/configs/rust-reqwest-petstore-async.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
generatorName: rust
22
outputDir: samples/client/petstore/rust/reqwest/petstore-async
33
library: reqwest
4-
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
4+
inputSpec: modules/openapi-generator/src/test/resources/3_0/rust/petstore.yaml
55
templateDir: modules/openapi-generator/src/main/resources/rust
66
additionalProperties:
77
supportAsync: true

bin/configs/rust-reqwest-petstore-awsv4signature.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
generatorName: rust
22
outputDir: samples/client/petstore/rust/reqwest/petstore-awsv4signature
33
library: reqwest
4-
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
4+
inputSpec: modules/openapi-generator/src/test/resources/3_0/rust/petstore.yaml
55
templateDir: modules/openapi-generator/src/main/resources/rust
66
additionalProperties:
77
supportAsync: false

bin/configs/unmaintained/rust-hyper-fileResponseTest.yaml

Lines changed: 0 additions & 9 deletions
This file was deleted.

bin/configs/unmaintained/rust-hyper-test.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.

bin/configs/unmaintained/rust-reqwest-fileResponseTest.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.

bin/configs/unmaintained/rust-reqwest-test.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.

modules/openapi-generator/src/test/resources/2_0/fileResponseTest.json

Lines changed: 0 additions & 33 deletions
This file was deleted.

modules/openapi-generator/src/test/resources/3_0/rust/petstore.yaml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,31 @@ paths:
599599
description: Invalid username supplied
600600
'404':
601601
description: User not found
602+
'/tests/fileResponse':
603+
get:
604+
tags:
605+
- testing
606+
summary: Returns an image file
607+
responses:
608+
'200':
609+
description: An image file
610+
content:
611+
image/jpeg:
612+
schema:
613+
type: string
614+
format: binary
615+
'/tests/typeTesting':
616+
get:
617+
tags:
618+
- testing
619+
summary: Route to test the TypeTesting schema
620+
responses:
621+
'200':
622+
description: The TypeTesting response
623+
content:
624+
application/json:
625+
schema:
626+
$ref: '#/components/schemas/TypeTesting'
602627
externalDocs:
603628
description: Find out more about Swagger
604629
url: 'http://swagger.io'
@@ -791,3 +816,34 @@ components:
791816
- A
792817
- B
793818
type: string
819+
TypeTesting:
820+
description: Test handling of different field data types
821+
type: object
822+
required:
823+
- int32
824+
- int64
825+
- float
826+
- double
827+
- string
828+
- boolean
829+
- uuid
830+
properties:
831+
int32:
832+
type: integer
833+
format: int32
834+
int64:
835+
type: integer
836+
format: int64
837+
float:
838+
type: number
839+
format: float
840+
double:
841+
type: number
842+
format: double
843+
string:
844+
type: string
845+
boolean:
846+
type: boolean
847+
uuid:
848+
type: string
849+
format: uuid

modules/openapi-generator/src/test/resources/3_0/rust/rust-test.yaml

Lines changed: 0 additions & 31 deletions
This file was deleted.

samples/client/petstore/rust/hyper/fileResponseTest/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)