feat(api): expose family settings (#1645)

* feat(api): expose family settings

* test(api): assert family settings moniker

* test(api): align family settings api key helper

* fix(api): tighten family settings schema
This commit is contained in:
ghost
2026-05-03 15:10:46 -06:00
committed by GitHub
parent 911aa34ba9
commit e93b1f1fd7
7 changed files with 308 additions and 0 deletions

View File

@@ -274,6 +274,29 @@ RSpec.configure do |config|
pagination: { '$ref' => '#/components/schemas/Pagination' }
}
},
FamilySettings: {
type: :object,
required: %w[id currency locale date_format month_start_day moniker default_account_sharing custom_enabled_currencies enabled_currencies created_at updated_at],
properties: {
id: { type: :string, format: :uuid },
name: { type: :string, nullable: true },
currency: { type: :string },
locale: { type: :string },
date_format: { type: :string },
country: { type: :string, nullable: true },
timezone: { type: :string, nullable: true },
month_start_day: { type: :integer, minimum: 1, maximum: 28 },
moniker: { type: :string, enum: Family::MONIKERS },
default_account_sharing: { type: :string, enum: %w[shared private] },
custom_enabled_currencies: { type: :boolean },
enabled_currencies: {
type: :array,
items: { type: :string }
},
created_at: { type: :string, format: :'date-time' },
updated_at: { type: :string, format: :'date-time' }
}
},
Category: {
type: :object,
required: %w[id name color icon],