Bonfire.API.MastoCompat.Schemas.Account (Bonfire v1.0.1-social-alpha.28)
View SourceSchema definition for Mastodon Account entity.
Mastodon Accounts represent user profiles with their metadata, statistics, and configuration.
In Bonfire, Accounts map to Users with their Profile and Character data.
Summary
Functions
Returns the default values for a Mastodon Account.
Creates a new Account map with defaults merged with provided attributes.
Required fields for a valid Mastodon Account.
Validates that an Account has all required fields.
Functions
Returns the default values for a Mastodon Account.
These defaults ensure all required fields have valid values.
Creates a new Account map with defaults merged with provided attributes.
Required fields for a valid Mastodon Account.
Per the Mastodon API spec, these fields must be present and non-nil.
Validates that an Account has all required fields.
Returns {:ok, account} if valid, {:error, {:missing_fields, fields}} otherwise.