Skip to content

Commit

Permalink
Merge pull request #1266 from Amsterdam/bugfix/swagger
Browse files Browse the repository at this point in the history
Fix swagger ui
  • Loading branch information
remyvdwereld authored Sep 4, 2024
2 parents 2dc5dd4 + 6fa3274 commit c2fb88a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/apps/users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Meta:
)

USERNAME_FIELD = "email"
REQUIRED_FIELDS = []
REQUIRED_FIELDS = ["username"]

@property
def full_name(self):
Expand Down
4 changes: 4 additions & 0 deletions app/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"rest_framework",
"rest_framework.authtoken",
"drf_spectacular",
"drf_spectacular_sidecar", # required for Django collectstatic discovery
"django_extensions",
"django_filters",
"django_celery_beat",
Expand Down Expand Up @@ -175,6 +176,9 @@
"SCHEMA_PATH_PREFIX": "/api/v[0-9]/",
"TITLE": "Zaken Backend Gateway API",
"VERSION": "v1",
"SWAGGER_UI_DIST": "SIDECAR", # shorthand to use the sidecar instead
"SWAGGER_UI_FAVICON_HREF": "SIDECAR",
"REDOC_DIST": "SIDECAR",
}

TAG_NAME = os.getenv("TAG_NAME", "default-release")
Expand Down
1 change: 1 addition & 0 deletions app/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ django-timezone-field==6.1.0
djangorestframework==3.15.2
djangorestframework-simplejwt==5.3.1
drf-spectacular==0.27.2
drf-spectacular-sidecar==2024.7.1
drf-writable-nested==0.6.3
spiffworkflow==1.1.0
Faker==8.13.2
Expand Down

0 comments on commit c2fb88a

Please sign in to comment.