Skip to content

Commit

Permalink
fix(query-param): be explicit about no nulls
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions-bot committed Apr 22, 2024
1 parent fba17e0 commit 807478a
Show file tree
Hide file tree
Showing 17 changed files with 28 additions and 116 deletions.
9 changes: 3 additions & 6 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ docs/EmployeeResponse.md
docs/EmployeeResponseManager.md
docs/EmploymentNoNullEnumRequest.md
docs/EmploymentResponse.md
docs/EmploymentStatus.md
docs/EmploymentStatusNotNull.md
docs/EmploymentStatusNotNullNotNullable.md
docs/EmploymentStatusNotNullRequest.md
docs/EmploymentStatusResponse.md
docs/GroupNoNullEnumRequest.md
Expand Down Expand Up @@ -85,8 +84,7 @@ lib/openapi_client/models/employee_response.rb
lib/openapi_client/models/employee_response_manager.rb
lib/openapi_client/models/employment_no_null_enum_request.rb
lib/openapi_client/models/employment_response.rb
lib/openapi_client/models/employment_status.rb
lib/openapi_client/models/employment_status_not_null.rb
lib/openapi_client/models/employment_status_not_null_not_nullable.rb
lib/openapi_client/models/employment_status_not_null_request.rb
lib/openapi_client/models/employment_status_response.rb
lib/openapi_client/models/group_no_null_enum_request.rb
Expand Down Expand Up @@ -142,10 +140,9 @@ spec/models/employee_response_manager_spec.rb
spec/models/employee_response_spec.rb
spec/models/employment_no_null_enum_request_spec.rb
spec/models/employment_response_spec.rb
spec/models/employment_status_not_null_not_nullable_spec.rb
spec/models/employment_status_not_null_request_spec.rb
spec/models/employment_status_not_null_spec.rb
spec/models/employment_status_response_spec.rb
spec/models/employment_status_spec.rb
spec/models/group_no_null_enum_request_spec.rb
spec/models/group_response_spec.rb
spec/models/id_and_message_response_spec.rb
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
affixapi (1.1.62)
affixapi (1.1.63)
typhoeus (~> 1.0, >= 1.0.1)

GEM
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,7 @@ Class | Method | HTTP request | Description
- [OpenapiClient::EmployeeResponseManager](docs/EmployeeResponseManager.md)
- [OpenapiClient::EmploymentNoNullEnumRequest](docs/EmploymentNoNullEnumRequest.md)
- [OpenapiClient::EmploymentResponse](docs/EmploymentResponse.md)
- [OpenapiClient::EmploymentStatus](docs/EmploymentStatus.md)
- [OpenapiClient::EmploymentStatusNotNull](docs/EmploymentStatusNotNull.md)
- [OpenapiClient::EmploymentStatusNotNullNotNullable](docs/EmploymentStatusNotNullNotNullable.md)
- [OpenapiClient::EmploymentStatusNotNullRequest](docs/EmploymentStatusNotNullRequest.md)
- [OpenapiClient::EmploymentStatusResponse](docs/EmploymentStatusResponse.md)
- [OpenapiClient::GroupNoNullEnumRequest](docs/GroupNoNullEnumRequest.md)
Expand Down
4 changes: 2 additions & 2 deletions docs/Class20230301Api.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ end

api_instance = OpenapiClient::Class20230301Api.new
opts = {
employment_status: OpenapiClient::EmploymentStatusNotNull::ACTIVE # EmploymentStatusNotNull | Enable server-side filtering of the `employment_status` attribute. Will only include individuals with that attribute explicitly set (ie if an individuals has a `null`, it will not be returned if this parameter is set)
employment_status: OpenapiClient::EmploymentStatusNotNullNotNullable::ACTIVE # EmploymentStatusNotNullNotNullable | Enable server-side filtering of the `employment_status` attribute. Will only include individuals with that attribute explicitly set (ie if an individuals has a `null`, it will not be returned if this parameter is set)
}

begin
Expand Down Expand Up @@ -141,7 +141,7 @@ end

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **employment_status** | [**EmploymentStatusNotNull**](.md) | Enable server-side filtering of the `employment_status` attribute. Will only include individuals with that attribute explicitly set (ie if an individuals has a `null`, it will not be returned if this parameter is set) | [optional] |
| **employment_status** | [**EmploymentStatusNotNullNotNullable**](.md) | Enable server-side filtering of the `employment_status` attribute. Will only include individuals with that attribute explicitly set (ie if an individuals has a `null`, it will not be returned if this parameter is set) | [optional] |

### Return type

Expand Down
15 changes: 0 additions & 15 deletions docs/EmploymentStatusNotNull.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# OpenapiClient::EmploymentStatus
# OpenapiClient::EmploymentStatusNotNullNotNullable

## Properties

Expand All @@ -10,6 +10,6 @@
```ruby
require 'openapi_client'

instance = OpenapiClient::EmploymentStatus.new()
instance = OpenapiClient::EmploymentStatusNotNullNotNullable.new()
```

4 changes: 2 additions & 2 deletions docs/XHRVerticallyIntegratedApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ end

api_instance = OpenapiClient::XHRVerticallyIntegratedApi.new
opts = {
employment_status: OpenapiClient::EmploymentStatusNotNull::ACTIVE # EmploymentStatusNotNull | Enable server-side filtering of the `employment_status` attribute. Will only include individuals with that attribute explicitly set (ie if an individuals has a `null`, it will not be returned if this parameter is set)
employment_status: OpenapiClient::EmploymentStatusNotNullNotNullable::ACTIVE # EmploymentStatusNotNullNotNullable | Enable server-side filtering of the `employment_status` attribute. Will only include individuals with that attribute explicitly set (ie if an individuals has a `null`, it will not be returned if this parameter is set)
}

begin
Expand Down Expand Up @@ -141,7 +141,7 @@ end

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **employment_status** | [**EmploymentStatusNotNull**](.md) | Enable server-side filtering of the `employment_status` attribute. Will only include individuals with that attribute explicitly set (ie if an individuals has a `null`, it will not be returned if this parameter is set) | [optional] |
| **employment_status** | [**EmploymentStatusNotNullNotNullable**](.md) | Enable server-side filtering of the `employment_status` attribute. Will only include individuals with that attribute explicitly set (ie if an individuals has a `null`, it will not be returned if this parameter is set) | [optional] |

### Return type

Expand Down
3 changes: 1 addition & 2 deletions lib/openapi_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
require 'openapi_client/models/employee_response_manager'
require 'openapi_client/models/employment_no_null_enum_request'
require 'openapi_client/models/employment_response'
require 'openapi_client/models/employment_status'
require 'openapi_client/models/employment_status_not_null'
require 'openapi_client/models/employment_status_not_null_not_nullable'
require 'openapi_client/models/employment_status_not_null_request'
require 'openapi_client/models/employment_status_response'
require 'openapi_client/models/group_no_null_enum_request'
Expand Down
4 changes: 2 additions & 2 deletions lib/openapi_client/api/class20230301_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def xhr_companies20230301_with_http_info(opts = {})
# Employees
# List the individuals (employees, contractors, accountants, and others) listed in the HRIS/Payroll software
# @param [Hash] opts the optional parameters
# @option opts [EmploymentStatusNotNull] :employment_status Enable server-side filtering of the `employment_status` attribute. Will only include individuals with that attribute explicitly set (ie if an individuals has a `null`, it will not be returned if this parameter is set)
# @option opts [EmploymentStatusNotNullNotNullable] :employment_status Enable server-side filtering of the `employment_status` attribute. Will only include individuals with that attribute explicitly set (ie if an individuals has a `null`, it will not be returned if this parameter is set)
# @return [Array<EmployeeResponse>]
def xhr_employees20230301(opts = {})
data, _status_code, _headers = xhr_employees20230301_with_http_info(opts)
Expand All @@ -89,7 +89,7 @@ def xhr_employees20230301(opts = {})
# Employees
# List the individuals (employees, contractors, accountants, and others) listed in the HRIS/Payroll software
# @param [Hash] opts the optional parameters
# @option opts [EmploymentStatusNotNull] :employment_status Enable server-side filtering of the &#x60;employment_status&#x60; attribute. Will only include individuals with that attribute explicitly set (ie if an individuals has a &#x60;null&#x60;, it will not be returned if this parameter is set)
# @option opts [EmploymentStatusNotNullNotNullable] :employment_status Enable server-side filtering of the &#x60;employment_status&#x60; attribute. Will only include individuals with that attribute explicitly set (ie if an individuals has a &#x60;null&#x60;, it will not be returned if this parameter is set)
# @return [Array<(Array<EmployeeResponse>, Integer, Hash)>] Array<EmployeeResponse> data, response status code and response headers
def xhr_employees20230301_with_http_info(opts = {})
if @api_client.config.debugging
Expand Down
4 changes: 2 additions & 2 deletions lib/openapi_client/api/xhr_vertically_integrated_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def xhr_companies20230301_with_http_info(opts = {})
# Employees
# List the individuals (employees, contractors, accountants, and others) listed in the HRIS/Payroll software
# @param [Hash] opts the optional parameters
# @option opts [EmploymentStatusNotNull] :employment_status Enable server-side filtering of the &#x60;employment_status&#x60; attribute. Will only include individuals with that attribute explicitly set (ie if an individuals has a &#x60;null&#x60;, it will not be returned if this parameter is set)
# @option opts [EmploymentStatusNotNullNotNullable] :employment_status Enable server-side filtering of the &#x60;employment_status&#x60; attribute. Will only include individuals with that attribute explicitly set (ie if an individuals has a &#x60;null&#x60;, it will not be returned if this parameter is set)
# @return [Array<EmployeeResponse>]
def xhr_employees20230301(opts = {})
data, _status_code, _headers = xhr_employees20230301_with_http_info(opts)
Expand All @@ -89,7 +89,7 @@ def xhr_employees20230301(opts = {})
# Employees
# List the individuals (employees, contractors, accountants, and others) listed in the HRIS/Payroll software
# @param [Hash] opts the optional parameters
# @option opts [EmploymentStatusNotNull] :employment_status Enable server-side filtering of the &#x60;employment_status&#x60; attribute. Will only include individuals with that attribute explicitly set (ie if an individuals has a &#x60;null&#x60;, it will not be returned if this parameter is set)
# @option opts [EmploymentStatusNotNullNotNullable] :employment_status Enable server-side filtering of the &#x60;employment_status&#x60; attribute. Will only include individuals with that attribute explicitly set (ie if an individuals has a &#x60;null&#x60;, it will not be returned if this parameter is set)
# @return [Array<(Array<EmployeeResponse>, Integer, Hash)>] Array<EmployeeResponse> data, response status code and response headers
def xhr_employees20230301_with_http_info(opts = {})
if @api_client.config.debugging
Expand Down
Loading

0 comments on commit 807478a

Please sign in to comment.