Sha256: 41eccff5eb81047a54108e7e87a3209df46dbe36959d556e5f84d2eb7bf6e433
Contents?: true
Size: 713 Bytes
Versions: 8
Compression:
Stored size: 713 Bytes
Contents
# frozen_string_literal: true module Dhis2 module Api module Version224 class Program < ::Dhis2::Api::Base include ::Dhis2::Api::Listable include ::Dhis2::Api::Findable include ::Dhis2::Api::Creatable include ::Dhis2::Api::Updatable include ::Dhis2::Api::Deletable include ::Dhis2::Api::Version224::SaveValidator Schema = Dry::Validation.Schema do required(:name).filled required(:program_type).value( included_in?: ::Dhis2::Api::Version224::Constants.program_types ) required(:category_combo).schema do required(:id).filled end end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems