Skip to content

Commit b7762e9

Browse files
committed
Merge branch 'follow-up-rust-anyof-test' of github.com:OpenAPITools/openapi-generator into refactoring/rust-true-anyof-support
2 parents 84be5af + 789b9ff commit b7762e9

23 files changed

+841
-0
lines changed

bin/configs/rust-hyper-anyof.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
generatorName: rust
2+
outputDir: samples/client/others/rust/hyper/anyof
3+
library: hyper
4+
inputSpec: modules/openapi-generator/src/test/resources/3_0/rust/rust-anyof-test.yaml
5+
templateDir: modules/openapi-generator/src/main/resources/rust
6+
additionalProperties:
7+
supportAsync: false
8+
packageName: anyof-hyper
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/target/
2+
**/*.rs.bk
3+
Cargo.lock
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# OpenAPI Generator Ignore
2+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.gitignore
2+
.travis.yml
3+
Cargo.toml
4+
README.md
5+
docs/AnotherAnyOfTest.md
6+
docs/DefaultApi.md
7+
docs/ModelIdentifier.md
8+
docs/TestResponse.md
9+
git_push.sh
10+
src/apis/client.rs
11+
src/apis/configuration.rs
12+
src/apis/default_api.rs
13+
src/apis/mod.rs
14+
src/apis/request.rs
15+
src/lib.rs
16+
src/models/another_any_of_test.rs
17+
src/models/mod.rs
18+
src/models/model_identifier.rs
19+
src/models/test_response.rs
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7.16.0-SNAPSHOT
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
language: rust
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[package]
2+
name = "anyof-hyper"
3+
version = "1.0.0"
4+
authors = ["OpenAPI Generator team and contributors"]
5+
description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
6+
# Override this license by providing a License Object in the OpenAPI.
7+
license = "Unlicense"
8+
edition = "2021"
9+
10+
[dependencies]
11+
serde = { version = "^1.0", features = ["derive"] }
12+
serde_json = "^1.0"
13+
serde_repr = "^0.1"
14+
url = "^2.5"
15+
hyper = { version = "^1.3.1", features = ["full"] }
16+
hyper-util = { version = "0.1.5", features = ["client", "client-legacy", "http1", "http2"] }
17+
http-body-util = { version = "0.1.2" }
18+
http = "~0.2"
19+
base64 = "~0.7.0"
20+
futures = "^0.3"
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Rust API client for anyof-hyper
2+
3+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4+
5+
6+
## Overview
7+
8+
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://openapis.org) from a remote server, you can easily generate an API client.
9+
10+
- API version: 1.0.0
11+
- Package version: 1.0.0
12+
- Generator version: 7.16.0-SNAPSHOT
13+
- Build package: `org.openapitools.codegen.languages.RustClientCodegen`
14+
15+
## Installation
16+
17+
Put the package under your project folder in a directory named `anyof-hyper` and add the following to `Cargo.toml` under `[dependencies]`:
18+
19+
```
20+
anyof-hyper = { path = "./anyof-hyper" }
21+
```
22+
23+
## Documentation for API Endpoints
24+
25+
All URIs are relative to *http://localhost*
26+
27+
Class | Method | HTTP request | Description
28+
------------ | ------------- | ------------- | -------------
29+
*DefaultApi* | [**model_get**](docs/DefaultApi.md#model_get) | **Get** /model |
30+
31+
32+
## Documentation For Models
33+
34+
- [AnotherAnyOfTest](docs/AnotherAnyOfTest.md)
35+
- [ModelIdentifier](docs/ModelIdentifier.md)
36+
- [TestResponse](docs/TestResponse.md)
37+
38+
39+
To get access to the crate's generated documentation, use:
40+
41+
```
42+
cargo doc --open
43+
```
44+
45+
## Author
46+
47+
48+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# AnotherAnyOfTest
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
8+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
9+
10+
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# \DefaultApi
2+
3+
All URIs are relative to *http://localhost*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**model_get**](DefaultApi.md#model_get) | **Get** /model |
8+
9+
10+
11+
## model_get
12+
13+
> models::TestResponse model_get()
14+
15+
16+
### Parameters
17+
18+
This endpoint does not need any parameter.
19+
20+
### Return type
21+
22+
[**models::TestResponse**](TestResponse.md)
23+
24+
### Authorization
25+
26+
No authorization required
27+
28+
### HTTP request headers
29+
30+
- **Content-Type**: Not defined
31+
- **Accept**: application/json
32+
33+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
34+

0 commit comments

Comments
 (0)