Fix typos
This commit is contained in:
@@ -107,7 +107,7 @@ fastapi-project
|
|||||||
6. `constants.py` - module specific constants and error codes
|
6. `constants.py` - module specific constants and error codes
|
||||||
7. `config.py` - e.g. env vars
|
7. `config.py` - e.g. env vars
|
||||||
8. `utils.py` - non-business logic functions, e.g. response normalization, data enrichment, etc.
|
8. `utils.py` - non-business logic functions, e.g. response normalization, data enrichment, etc.
|
||||||
9. `exceptions` - module specific exceptions, e.g. `PostNotFound`, `InvalidUserData`
|
9. `exceptions.py` - module specific exceptions, e.g. `PostNotFound`, `InvalidUserData`
|
||||||
3. When package requires services or dependencies or constants from other packages - import them with an explicit module name
|
3. When package requires services or dependencies or constants from other packages - import them with an explicit module name
|
||||||
```python
|
```python
|
||||||
from src.auth import constants as auth_constants
|
from src.auth import constants as auth_constants
|
||||||
@@ -439,7 +439,7 @@ class ORJSONModel(BaseModel):
|
|||||||
class Config:
|
class Config:
|
||||||
json_loads = orjson.loads
|
json_loads = orjson.loads
|
||||||
json_dumps = orjson_dumps
|
json_dumps = orjson_dumps
|
||||||
json_encoders = {datetime: convert_datetime_to_gmt} # method for customer JSON encoding of datetime fields
|
json_encoders = {datetime: convert_datetime_to_gmt} # method for custom JSON encoding of datetime fields
|
||||||
|
|
||||||
@root_validator()
|
@root_validator()
|
||||||
def set_null_microseconds(cls, data: dict) -> dict:
|
def set_null_microseconds(cls, data: dict) -> dict:
|
||||||
|
|||||||
Reference in New Issue
Block a user