Sha256: 7b6a3223394283881f04f1fe254930b8db8cb40d39ae86676ed752c2d593d765

Contents?: true

Size: 1.18 KB

Versions: 1

Compression:

Stored size: 1.18 KB

Contents

# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

# typed: true
# frozen_string_literal: true


module OpenApiSDK
  module Shared
  
    # A SchemaDiff represents a diff of two Schemas.
    class SchemaDiff < ::OpenApiSDK::Utils::FieldAugmented
      extend T::Sig

      # Holds every addition change in the diff.
      field :additions, T::Array[::String], { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('additions') } }
      # Holds every deletion change in the diff.
      field :deletions, T::Array[::String], { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('deletions') } }
      # Holds every modification change in the diff.
      field :modifications, T::Hash[Symbol, ::OpenApiSDK::Shared::ValueChange], { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('modifications') } }


      sig { params(additions: T::Array[::String], deletions: T::Array[::String], modifications: T::Hash[Symbol, ::OpenApiSDK::Shared::ValueChange]).void }
      def initialize(additions: nil, deletions: nil, modifications: nil)
        @additions = additions
        @deletions = deletions
        @modifications = modifications
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
speakeasy_client_sdk_ruby-4.2.24 lib/open_api_sdk/models/shared/schemadiff.rb