Sha256: 5b4de9ed1dd83ab57d90dbd73db4f408a9eff3585127bcb41df55cc782347231

Contents?: true

Size: 647 Bytes

Versions: 8

Compression:

Stored size: 647 Bytes

Contents

# frozen_string_literal: true

module Dhis2
  module Api
    module Version225
      class DataValueSet < ::Dhis2::Api::Base
        include ::Dhis2::Api::Creatable
        include ::Dhis2::Api::Listable
        include ::Dhis2::Api::Shared::SaveValidator
        include ::Dhis2::Api::Shared::DataValueSet

        Schema = Dry::Validation.Schema do
          required(:data_values).each do
            schema do
              required(:value).filled
              required(:period).filled
              required(:org_unit).filled
              required(:data_element).filled
            end
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dhis2-3.3.1 lib/dhis2/api/version225/data_value_set.rb
dhis2-3.2.1 lib/dhis2/api/version225/data_value_set.rb
dhis2-3.0.7 lib/dhis2/api/version225/data_value_set.rb
dhis2-3.0.5 lib/dhis2/api/version225/data_value_set.rb
dhis2-3.0.4 lib/dhis2/api/version225/data_value_set.rb
dhis2-3.0.3 lib/dhis2/api/version225/data_value_set.rb
dhis2-3.0.2 lib/dhis2/api/version225/data_value_set.rb
dhis2-3.0.0 lib/dhis2/api/version225/data_value_set.rb