Skip to content

Commit

Permalink
Merge pull request #131 from maykinmedia/feature/oaf-68-csp-errors
Browse files Browse the repository at this point in the history
🔧[makinmedia/open-api-framework#68] fix CSP errors
  • Loading branch information
Coperh authored Oct 1, 2024
2 parents 261ac7f + 4858e7e commit 9b45e3b
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 7 deletions.
11 changes: 8 additions & 3 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ django==4.2.15
# djangorestframework-inclusions
# drf-nested-routers
# drf-spectacular
# drf-spectacular-sidecar
# drf-yasg
# maykin-2fa
# mozilla-django-oidc
Expand Down Expand Up @@ -185,8 +186,12 @@ drf-nested-routers==0.93.4
# via
# -r requirements/base.in
# commonground-api-common
drf-spectacular==0.27.2
# via open-api-framework
drf-spectacular[sidecar]==0.27.2
# via
# drf-spectacular
# open-api-framework
drf-spectacular-sidecar==2024.7.1
# via drf-spectacular
drf-yasg==1.21.7
# via commonground-api-common
ecs-logging==2.1.0
Expand Down Expand Up @@ -241,7 +246,7 @@ mozilla-django-oidc-db==0.19.0
# via open-api-framework
notifications-api-common==0.2.2
# via commonground-api-common
open-api-framework==0.8.0
open-api-framework==0.8.1
# via -r requirements/base.in
orderedmultidict==1.0.1
# via furl
Expand Down
10 changes: 8 additions & 2 deletions requirements/ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ django==4.2.15
# djangorestframework-inclusions
# drf-nested-routers
# drf-spectacular
# drf-spectacular-sidecar
# drf-yasg
# maykin-2fa
# mozilla-django-oidc
Expand Down Expand Up @@ -278,10 +279,15 @@ drf-nested-routers==0.93.4
# via
# -r requirements/base.txt
# commonground-api-common
drf-spectacular==0.27.2
drf-spectacular[sidecar]==0.27.2
# via
# -r requirements/base.txt
# drf-spectacular
# open-api-framework
drf-spectacular-sidecar==2024.7.1
# via
# -r requirements/base.txt
# drf-spectacular
drf-yasg==1.21.7
# via
# -r requirements/base.txt
Expand Down Expand Up @@ -387,7 +393,7 @@ notifications-api-common==0.2.2
# via
# -r requirements/base.txt
# commonground-api-common
open-api-framework==0.8.0
open-api-framework==0.8.1
# via -r requirements/base.txt
orderedmultidict==1.0.1
# via
Expand Down
10 changes: 8 additions & 2 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ django==4.2.15
# djangorestframework-inclusions
# drf-nested-routers
# drf-spectacular
# drf-spectacular-sidecar
# drf-yasg
# maykin-2fa
# mozilla-django-oidc
Expand Down Expand Up @@ -306,10 +307,15 @@ drf-nested-routers==0.93.4
# via
# -r requirements/ci.txt
# commonground-api-common
drf-spectacular==0.27.2
drf-spectacular[sidecar]==0.27.2
# via
# -r requirements/ci.txt
# drf-spectacular
# open-api-framework
drf-spectacular-sidecar==2024.7.1
# via
# -r requirements/ci.txt
# drf-spectacular
drf-yasg==1.21.7
# via
# -r requirements/ci.txt
Expand Down Expand Up @@ -432,7 +438,7 @@ notifications-api-common==0.2.2
# via
# -r requirements/ci.txt
# commonground-api-common
open-api-framework==0.8.0
open-api-framework==0.8.1
# via -r requirements/ci.txt
orderedmultidict==1.0.1
# via
Expand Down
1 change: 1 addition & 0 deletions src/objecttypes/conf/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"""

SPECTACULAR_SETTINGS = {
"REDOC_DIST": "SIDECAR",
"SCHEMA_PATH_PREFIX": r"/api/v[1-9]+",
"SCHEMA_PATH_PREFIX_TRIM": True,
"TITLE": "Objecttypes API",
Expand Down

0 comments on commit 9b45e3b

Please sign in to comment.