diff --git a/CHANGELOG.md b/CHANGELOG.md index e8f0069..53b47b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,11 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.2.2] - 2020-09-18 + +### Added + +- `photos` field to `projects` + +## [1.2.1] - 2020-09-18 + +### Fixed + +- Fixing an issue related to the OpenApi code generator. + ## [1.2.0] - 2020-09-17 ### Added -- `photos` field to `projects` - `average_price_per_tonne_cents_usd` field to `projects` - `remaining_mass_g` field to `projects` - `standard` field to `projects` diff --git a/Gemfile.lock b/Gemfile.lock index 431885d..56dfdcb 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - patch_ruby (1.2.0) + patch_ruby (1.2.2) json (~> 2.1, >= 2.1.0) typhoeus (~> 1.0, >= 1.0.1) diff --git a/lib/patch_ruby/models/photo.rb b/lib/patch_ruby/models/photo.rb index 7bf42df..9028c4b 100644 --- a/lib/patch_ruby/models/photo.rb +++ b/lib/patch_ruby/models/photo.rb @@ -14,19 +14,19 @@ module Patch class Photo - attr_accessor :file + attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'file' => :'file' + :'url' => :'url' } end # Attribute type mapping. def self.openapi_types { - :'file' => :'String' + :'url' => :'String' } end @@ -56,8 +56,8 @@ def initialize(attributes = {}) h[k.to_sym] = v } - if attributes.key?(:'file') - self.file = attributes[:'file'] + if attributes.key?(:'url') + self.url = attributes[:'url'] end end @@ -79,7 +79,7 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - file == o.file + url == o.url end # @see the `==` method @@ -91,7 +91,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [file].hash + [url].hash end # Builds the object from hash diff --git a/lib/patch_ruby/models/project.rb b/lib/patch_ruby/models/project.rb index d159653..0ce275b 100644 --- a/lib/patch_ruby/models/project.rb +++ b/lib/patch_ruby/models/project.rb @@ -88,7 +88,7 @@ def self.openapi_types :'photos' => :'Array', :'average_price_per_tonne_cents_usd' => :'Integer', :'remaining_mass_g' => :'Integer', - :'standard' => :'OneOfstandard' + :'standard' => :'Standard' } end diff --git a/lib/patch_ruby/version.rb b/lib/patch_ruby/version.rb index ce4a8fd..d0708e9 100644 --- a/lib/patch_ruby/version.rb +++ b/lib/patch_ruby/version.rb @@ -11,5 +11,5 @@ =end module Patch - VERSION = '1.2.0' + VERSION = '1.2.2' end