Skip to content

Commit

Permalink
(fix) paperless document serializer requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
danh91 committed Nov 24, 2023
1 parent 628dc32 commit dc933fa
Show file tree
Hide file tree
Showing 4 changed files with 1,659 additions and 1,657 deletions.
2 changes: 1 addition & 1 deletion bin/server
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ source "bin/activate-env" > /dev/null 2>&1
# Run server commands
if [[ "$*" == *gen:graph* ]]; then
cd "${ROOT:?}"
apollo service:download --endpoint=http://localhost:5002/graphql/ "${ROOT:?}/server/schemas/graphql.json"
apollo service:download --endpoint=http://0.0.0.0:5002/graphql/ "${ROOT:?}/server/schemas/graphql.json"
cd -
elif [[ "$*" == *gen:openapi* ]]; then
cd "${ROOT:?}"
Expand Down
4 changes: 3 additions & 1 deletion server/modules/core/karrio/server/core/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1545,7 +1545,9 @@ class DocumentFileData(serializers.Serializer):
help_text="The file name",
)
doc_format = serializers.CharField(
required=True,
required=False,
allow_blank=False,
allow_null=True,
help_text="The file format",
)
doc_type = serializers.CharField(
Expand Down
Loading

0 comments on commit dc933fa

Please sign in to comment.