lemmy/crates/api/src
Nutomic 93225e5ddf
Error enum fixed (#3487)
* Create error type enum

* Replace magic string slices with LemmyErrorTypes

* Remove unused enum

* Add rename snake case to error enum

* Rename functions

* clippy

* Fix merge errors

* Serialize in PascalCase instead of snake_case

* Revert src/lib

* Add serialization tests

* Update translations

* Fix compilation error in test

* Fix another compilation error

* Add code for generating typescript types

* Various fixes to avoid breaking api

* impl From<LemmyErrorType> for LemmyError

* with_lemmy_type

* trigger ci

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-07-10 16:50:07 +02:00
..
comment Error enum fixed (#3487) 2023-07-10 16:50:07 +02:00
comment_report Error enum fixed (#3487) 2023-07-10 16:50:07 +02:00
community Error enum fixed (#3487) 2023-07-10 16:50:07 +02:00
local_user Error enum fixed (#3487) 2023-07-10 16:50:07 +02:00
post Error enum fixed (#3487) 2023-07-10 16:50:07 +02:00
post_report Error enum fixed (#3487) 2023-07-10 16:50:07 +02:00
private_message Error enum fixed (#3487) 2023-07-10 16:50:07 +02:00
private_message_report Error enum fixed (#3487) 2023-07-10 16:50:07 +02:00
site Error enum fixed (#3487) 2023-07-10 16:50:07 +02:00
lib.rs Error enum fixed (#3487) 2023-07-10 16:50:07 +02:00