app/representers/openstax/accounts/api/v1/account_representer.rb in openstax_accounts-7.12.0 vs app/representers/openstax/accounts/api/v1/account_representer.rb in openstax_accounts-7.13.0

- old
+ new

@@ -9,11 +9,11 @@ # This representer is used to communicate with Accounts # and so must allow read/write on all properties # Do not use it in create/update APIs! # Otherwise, this representer can be used directly or subclassed - # for an object that delegates openstax_uid, username, first_name, last_name, full_name, # title, faculty_status and salesforce_contact_id to an account + # for an object that delegates openstax_uid, username, first_name, last_name, full_name, # title, faculty_status, role, school_type and salesforce_contact_id to an account include Roar::JSON property :openstax_uid, as: :id, @@ -74,9 +74,17 @@ schema_info: { description: "The user's uncorroborated role, one of [#{ OpenStax::Accounts::Account.roles.keys.map(&:to_s).join(', ') }]", required: true + } + + property :school_type, + type: String, + schema_info: { + description: "One of #{ + OpenStax::Accounts::Account.school_types.keys.map(&:to_s).inspect + }" } property :uuid, type: String, schema_info: {