lib/ding/models/shared/errorresponse.rb in ding_sdk-0.5.1 vs lib/ding/models/shared/errorresponse.rb in ding_sdk-0.5.2

- old
+ new

@@ -44,11 +44,11 @@ end end - class ErrorResponse < DingSDK::Utils::FieldAugmented + class ErrorResponse < ::DingSDK::Utils::FieldAugmented extend T::Sig # A machine-readable code that describes the error. Possible values are: # * `invalid_phone_number` - This is not a valid E.164 number. # * `internal_server_error` - An internal server error occurred. @@ -62,14 +62,14 @@ # * `invalid_app_version` - The provided application version is invalid. # * `invalid_os_version` - The provided OS version is invalid. # * `invalid_device_model` - The provided device model is invalid. # * `invalid_device_id` - The provided device ID is invalid. # - field :code, T.nilable(Shared::Code), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('code'), 'decoder': Utils.enum_from_string(Shared::Code, true) } } + field :code, T.nilable(Shared::Code), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('code'), 'decoder': Utils.enum_from_string(Shared::Code, true) } } # A link to the documentation that describes the error. - field :doc_url, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('doc_url') } } + field :doc_url, T.nilable(String), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('doc_url') } } # A human-readable message that describes the error. - field :message, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('message') } } + field :message, T.nilable(String), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('message') } } sig { params(code: T.nilable(Shared::Code), doc_url: T.nilable(String), message: T.nilable(String)).void } def initialize(code: nil, doc_url: nil, message: nil) @code = code