]> cat aescling's git repositories - mastodon.git/commit
Add `details` to error response for `POST /api/v1/accounts` in REST API (#15803)
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 1 Mar 2021 03:59:13 +0000 (04:59 +0100)
committerGitHub <noreply@github.com>
Mon, 1 Mar 2021 03:59:13 +0000 (04:59 +0100)
commit9aa37b32c3307dcb5896e1b768967666a6fdbf65
treed10630dcc1a46d450be7b711e9ae47c91492d2cf
parentb4cb8c3c8356e226061fd70ae2139318c6a558e5
Add `details` to error response for `POST /api/v1/accounts` in REST API (#15803)
12 files changed:
app/controllers/api/v1/accounts_controller.rb
app/lib/validation_error_formatter.rb [new file with mode: 0644]
app/validators/blacklisted_email_validator.rb
app/validators/email_mx_validator.rb
app/validators/note_length_validator.rb
app/validators/unique_username_validator.rb
app/validators/unreserved_username_validator.rb
config/locales/activerecord.en.yml
config/locales/en.yml
spec/controllers/auth/sessions_controller_spec.rb
spec/validators/blacklisted_email_validator_spec.rb
spec/validators/unreserved_username_validator_spec.rb