Skip to content

Commit b893e28

Browse files
Merge pull request #67 from mxenabled/openapi-generator-0.11.2
Generated version 0.11.2
2 parents 8100c25 + 6a7b381 commit b893e28

5 files changed

Lines changed: 26 additions & 8 deletions

File tree

docs/CredentialResponse.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
| **field_type** | **String** | | [optional] |
1010
| **guid** | **String** | | [optional] |
1111
| **label** | **String** | | [optional] |
12+
| **type** | **String** | | [optional] |
1213

1314
## Example
1415

@@ -20,7 +21,8 @@ instance = MxPlatformRuby::CredentialResponse.new(
2021
field_name: LOGIN,
2122
field_type: TEXT,
2223
guid: CRD-1ec152cd-e628-e81a-e852-d1e7104624da,
23-
label: Username
24+
label: Username,
25+
type: TEXT
2426
)
2527
```
2628

lib/mx-platform-ruby/models/credential_response.rb

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,17 @@ class CredentialResponse
2525

2626
attr_accessor :label
2727

28+
attr_accessor :type
29+
2830
# Attribute mapping from ruby-style variable name to JSON key.
2931
def self.attribute_map
3032
{
3133
:'display_order' => :'display_order',
3234
:'field_name' => :'field_name',
3335
:'field_type' => :'field_type',
3436
:'guid' => :'guid',
35-
:'label' => :'label'
37+
:'label' => :'label',
38+
:'type' => :'type'
3639
}
3740
end
3841

@@ -48,7 +51,8 @@ def self.openapi_types
4851
:'field_name' => :'String',
4952
:'field_type' => :'String',
5053
:'guid' => :'String',
51-
:'label' => :'String'
54+
:'label' => :'String',
55+
:'type' => :'String'
5256
}
5357
end
5458

@@ -59,7 +63,8 @@ def self.openapi_nullable
5963
:'field_name',
6064
:'field_type',
6165
:'guid',
62-
:'label'
66+
:'label',
67+
:'type'
6368
])
6469
end
6570

@@ -97,6 +102,10 @@ def initialize(attributes = {})
97102
if attributes.key?(:'label')
98103
self.label = attributes[:'label']
99104
end
105+
106+
if attributes.key?(:'type')
107+
self.type = attributes[:'type']
108+
end
100109
end
101110

102111
# Show invalid properties with the reasons. Usually used together with valid?
@@ -121,7 +130,8 @@ def ==(o)
121130
field_name == o.field_name &&
122131
field_type == o.field_type &&
123132
guid == o.guid &&
124-
label == o.label
133+
label == o.label &&
134+
type == o.type
125135
end
126136

127137
# @see the `==` method
@@ -133,7 +143,7 @@ def eql?(o)
133143
# Calculates hash code according to all attributes.
134144
# @return [Integer] Hash code
135145
def hash
136-
[display_order, field_name, field_type, guid, label].hash
146+
[display_order, field_name, field_type, guid, label, type].hash
137147
end
138148

139149
# Builds the object from hash

lib/mx-platform-ruby/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
=end
1212

1313
module MxPlatformRuby
14-
VERSION = '0.11.1'
14+
VERSION = '0.11.2'
1515
end

openapi/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ gemHomepage: https://github.com/mxenabled/mx-platform-ruby
66
gemLicense: MIT
77
gemName: mx-platform-ruby
88
gemRequiredRubyVersion: ">= 2.6"
9-
gemVersion: 0.11.1
9+
gemVersion: 0.11.2
1010
library: faraday
1111
moduleName: MxPlatformRuby

spec/models/credential_response_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,10 @@
5555
end
5656
end
5757

58+
describe 'test attribute "type"' do
59+
it 'should work' do
60+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61+
end
62+
end
63+
5864
end

0 commit comments

Comments
 (0)