Skip to content

Commit

Permalink
Merge pull request #9 from ninoseki/fix-validation-error
Browse files Browse the repository at this point in the history
fix: update Attachment schema
  • Loading branch information
ninoseki committed Jun 29, 2020
2 parents 72a0d12 + 49f64f2 commit d658b85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/schemas/eml.py
Expand Up @@ -15,7 +15,7 @@ class Attachment(APIModel):
raw: str
filename: str
size: int
extension: str
extension: Optional[str]
hash_: Hash
mime_type: str
mime_type_short: str
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/types.ts
Expand Up @@ -21,7 +21,7 @@ interface Dictionary {
export interface Attachment {
filename: string;
size: number;
extension: string;
extension: string | undefined;
hash: Hash;
mimeType: string;
mimeTypeShort: string;
Expand Down

0 comments on commit d658b85

Please sign in to comment.