Skip to content

Commit

Permalink
build: add config to rename codegen models (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
ctran88 authored Jan 3, 2025
1 parent 445279b commit 3aec47c
Show file tree
Hide file tree
Showing 51 changed files with 58 additions and 1,495 deletions.
3 changes: 0 additions & 3 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ AllCops:
Exclude:
- 'lib/openapi_client/**/*'
- 'lib/openapi_client.rb'
- 'lib/models/update_magic_link_auth_method.rb'
- 'lib/models/update_otp_auth_method.rb'
- 'lib/models/update_passkeys_auth_method.rb'
- 'docs/generated/*'

Metrics/ClassLength:
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# OpenapiClient::CreateUserRequest
# OpenapiClient::CreateUserArgs

## Properties

Expand All @@ -13,7 +13,7 @@
```ruby
require 'openapi_client'

instance = OpenapiClient::CreateUserRequest.new(
instance = OpenapiClient::CreateUserArgs.new(
email: null,
phone: null,
user_metadata: null
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions docs/generated/UserInfo.md → docs/PassageUser.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# OpenapiClient::UserInfo
# OpenapiClient::PassageUser

## Properties

Expand Down Expand Up @@ -27,7 +27,7 @@
```ruby
require 'openapi_client'

instance = OpenapiClient::UserInfo.new(
instance = OpenapiClient::PassageUser.new(
created_at: null,
email: null,
email_verified: null,
Expand Down
6 changes: 3 additions & 3 deletions docs/generated/README.md → docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Class | Method | HTTP request | Description

- [OpenapiClient::AppleUserSocialConnection](docs/AppleUserSocialConnection.md)
- [OpenapiClient::CreateMagicLinkRequest](docs/CreateMagicLinkRequest.md)
- [OpenapiClient::CreateUserRequest](docs/CreateUserRequest.md)
- [OpenapiClient::CreateUserArgs](docs/CreateUserArgs.md)
- [OpenapiClient::GithubUserSocialConnection](docs/GithubUserSocialConnection.md)
- [OpenapiClient::GoogleUserSocialConnection](docs/GoogleUserSocialConnection.md)
- [OpenapiClient::Link](docs/Link.md)
Expand All @@ -123,11 +123,11 @@ Class | Method | HTTP request | Description
- [OpenapiClient::Model500Error](docs/Model500Error.md)
- [OpenapiClient::Nonce](docs/Nonce.md)
- [OpenapiClient::PaginatedLinks](docs/PaginatedLinks.md)
- [OpenapiClient::PassageUser](docs/PassageUser.md)
- [OpenapiClient::SocialConnectionType](docs/SocialConnectionType.md)
- [OpenapiClient::UpdateUserRequest](docs/UpdateUserRequest.md)
- [OpenapiClient::UpdateUserArgs](docs/UpdateUserArgs.md)
- [OpenapiClient::UserEventAction](docs/UserEventAction.md)
- [OpenapiClient::UserEventStatus](docs/UserEventStatus.md)
- [OpenapiClient::UserInfo](docs/UserInfo.md)
- [OpenapiClient::UserRecentEvent](docs/UserRecentEvent.md)
- [OpenapiClient::UserResponse](docs/UserResponse.md)
- [OpenapiClient::UserSocialConnections](docs/UserSocialConnections.md)
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# OpenapiClient::UpdateUserRequest
# OpenapiClient::UpdateUserArgs

## Properties

Expand All @@ -13,7 +13,7 @@
```ruby
require 'openapi_client'

instance = OpenapiClient::UpdateUserRequest.new(
instance = OpenapiClient::UpdateUserArgs.new(
email: null,
phone: null,
user_metadata: null
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/generated/UserResponse.md → docs/UserResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **user** | [**UserInfo**](UserInfo.md) | | |
| **user** | [**PassageUser**](PassageUser.md) | | |

## Example

Expand Down
File renamed without changes.
File renamed without changes.
24 changes: 12 additions & 12 deletions docs/generated/UsersApi.md → docs/UsersApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ end

## create_user

> <UserResponse> create_user(app_id, create_user_request)
> <UserResponse> create_user(app_id, create_user_args)
Create User

Expand All @@ -105,11 +105,11 @@ end

api_instance = OpenapiClient::UsersApi.new
app_id = 'app_id_example' # String | App ID
create_user_request = OpenapiClient::CreateUserRequest.new # CreateUserRequest | email, phone, user_metadata
create_user_args = OpenapiClient::CreateUserArgs.new # CreateUserArgs | email, phone, user_metadata

begin
# Create User
result = api_instance.create_user(app_id, create_user_request)
result = api_instance.create_user(app_id, create_user_args)
p result
rescue OpenapiClient::ApiError => e
puts "Error when calling UsersApi->create_user: #{e}"
Expand All @@ -120,12 +120,12 @@ end

This returns an Array which contains the response data, status code and headers.

> <Array(<UserResponse>, Integer, Hash)> create_user_with_http_info(app_id, create_user_request)
> <Array(<UserResponse>, Integer, Hash)> create_user_with_http_info(app_id, create_user_args)
```ruby
begin
# Create User
data, status_code, headers = api_instance.create_user_with_http_info(app_id, create_user_request)
data, status_code, headers = api_instance.create_user_with_http_info(app_id, create_user_args)
p status_code # => 2xx
p headers # => { ... }
p data # => <UserResponse>
Expand All @@ -139,7 +139,7 @@ end
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **app_id** | **String** | App ID | |
| **create_user_request** | [**CreateUserRequest**](CreateUserRequest.md) | email, phone, user_metadata | |
| **create_user_args** | [**CreateUserArgs**](CreateUserArgs.md) | email, phone, user_metadata | |

### Return type

Expand Down Expand Up @@ -462,7 +462,7 @@ end

## update_user

> <UserResponse> update_user(app_id, user_id, update_user_request)
> <UserResponse> update_user(app_id, user_id, update_user_args)
Update User

Expand All @@ -482,11 +482,11 @@ end
api_instance = OpenapiClient::UsersApi.new
app_id = 'app_id_example' # String | App ID
user_id = 'user_id_example' # String | User ID
update_user_request = OpenapiClient::UpdateUserRequest.new # UpdateUserRequest | user settings
update_user_args = OpenapiClient::UpdateUserArgs.new # UpdateUserArgs | user settings

begin
# Update User
result = api_instance.update_user(app_id, user_id, update_user_request)
result = api_instance.update_user(app_id, user_id, update_user_args)
p result
rescue OpenapiClient::ApiError => e
puts "Error when calling UsersApi->update_user: #{e}"
Expand All @@ -497,12 +497,12 @@ end

This returns an Array which contains the response data, status code and headers.

> <Array(<UserResponse>, Integer, Hash)> update_user_with_http_info(app_id, user_id, update_user_request)
> <Array(<UserResponse>, Integer, Hash)> update_user_with_http_info(app_id, user_id, update_user_args)
```ruby
begin
# Update User
data, status_code, headers = api_instance.update_user_with_http_info(app_id, user_id, update_user_request)
data, status_code, headers = api_instance.update_user_with_http_info(app_id, user_id, update_user_args)
p status_code # => 2xx
p headers # => { ... }
p data # => <UserResponse>
Expand All @@ -517,7 +517,7 @@ end
| ---- | ---- | ----------- | ----- |
| **app_id** | **String** | App ID | |
| **user_id** | **String** | User ID | |
| **update_user_request** | [**UpdateUserRequest**](UpdateUserRequest.md) | user settings | |
| **update_user_args** | [**UpdateUserArgs**](UpdateUserArgs.md) | user settings | |

### Return type

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
141 changes: 0 additions & 141 deletions docs/custom/AuthApi.md

This file was deleted.

Loading

0 comments on commit 3aec47c

Please sign in to comment.