Update generate.sh spec URL

This commit is contained in:
Foorack / Max Faxälv
2022-12-06 23:19:47 +01:00
parent a4cf1025e0
commit 178e74b886
8 changed files with 63 additions and 4 deletions

View File

@ -1,5 +1,6 @@
.travis.yml
Cargo.toml
docs/AccountDeletionLog.md
docs/AddFavoriteRequest.md
docs/AddGroupGalleryImageRequest.md
docs/ApiConfig.md
@ -152,6 +153,7 @@ src/apis/system_api.rs
src/apis/users_api.rs
src/apis/worlds_api.rs
src/lib.rs
src/models/account_deletion_log.rs
src/models/add_favorite_request.rs
src/models/add_group_gallery_image_request.rs
src/models/api_config.rs

View File

@ -1,6 +1,6 @@
[package]
name = "vrchatapi"
version = "1.9.1"
version = "1.10.1"
authors = ["me@ariesclark.com"]
description = "VRChat API Client for Rust"
license = "The MIT License (MIT)"

View File

@ -0,0 +1,13 @@
# AccountDeletionLog
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**message** | Option<**String**> | Typically \"Deletion requested\" or \"Deletion canceled\". Other messages like \"Deletion completed\" may exist, but are these are not possible to see as a regular user. | [optional][default to Deletion requested]
**deletion_scheduled** | Option<**String**> | When the deletion is scheduled to happen, standard is 14 days after the request. | [optional]
**date_time** | Option<**String**> | Date and time of the deletion request. | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**accepted_tos_version** | **i32** | |
**account_deletion_date** | Option<[**String**](string.md)> | | [optional]
**account_deletion_log** | Option<[**Vec<crate::models::AccountDeletionLog>**](AccountDeletionLog.md)> | | [optional]
**active_friends** | Option<**Vec<String>**> | | [optional]
**allow_avatar_copying** | **bool** | |
**bio** | **String** | |

View File

@ -9,7 +9,7 @@ rm src/apis src/models docs -rf
--git-user-id=vrchatapi \
--git-repo-id=vrchatapi-rust \
-o . \
-i ../specification/dist/openapi.yaml \
-i https://raw.githubusercontent.com/vrchatapi/specification/gh-pages/openapi.yaml \
--http-user-agent="vrchatapi-rust"
#--global-property debugOperations=true

View File

@ -0,0 +1,35 @@
/*
* VRChat API Documentation
*
*
* Contact: me@ariesclark.com
* Generated by: https://openapi-generator.tech
*/
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct AccountDeletionLog {
/// Typically \"Deletion requested\" or \"Deletion canceled\". Other messages like \"Deletion completed\" may exist, but are these are not possible to see as a regular user.
#[serde(rename = "message", skip_serializing_if = "Option::is_none")]
pub message: Option<String>,
/// When the deletion is scheduled to happen, standard is 14 days after the request.
#[serde(rename = "deletionScheduled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub deletion_scheduled: Option<Option<String>>,
/// Date and time of the deletion request.
#[serde(rename = "dateTime", skip_serializing_if = "Option::is_none")]
pub date_time: Option<String>,
}
impl AccountDeletionLog {
pub fn new() -> AccountDeletionLog {
AccountDeletionLog {
message: None,
deletion_scheduled: None,
date_time: None,
}
}
}

View File

@ -15,12 +15,17 @@ pub struct CurrentUser {
pub accepted_tos_version: i32,
#[serde(rename = "accountDeletionDate", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub account_deletion_date: Option<Option<String>>,
///
#[serde(rename = "accountDeletionLog", skip_serializing_if = "Option::is_none")]
pub account_deletion_log: Option<Vec<crate::models::AccountDeletionLog>>,
///
#[serde(rename = "activeFriends", skip_serializing_if = "Option::is_none")]
pub active_friends: Option<Vec<String>>,
#[serde(rename = "allowAvatarCopying")]
pub allow_avatar_copying: bool,
#[serde(rename = "bio")]
pub bio: String,
///
#[serde(rename = "bioLinks")]
pub bio_links: Vec<String>,
#[serde(rename = "currentAvatar")]
@ -120,6 +125,7 @@ impl CurrentUser {
CurrentUser {
accepted_tos_version,
account_deletion_date: None,
account_deletion_log: None,
active_friends: None,
allow_avatar_copying,
bio,

View File

@ -1,3 +1,5 @@
pub mod account_deletion_log;
pub use self::account_deletion_log::AccountDeletionLog;
pub mod add_favorite_request;
pub use self::add_favorite_request::AddFavoriteRequest;
pub mod add_group_gallery_image_request;