🚀 New issue to wemake-services/django-modern-rest by @sobolevn
📝 Formalize our CDN / static files support for OpenAPI renderers (#678)
I think that we should be able to configure: do we want to use local static files, served by django for OpenAPI renderers and interactive APIs, or should we use CDN for this.
Currently:
• Swagger uses local static files
• Scalar / Redoc use CDNs
Plan:
1. Introduce
2. Only when some lib has this explicit setting, we should use the CDN. Otherwise, they should use local static files which should be copied to
3. We need to document the EXACT versions we have bundleded in our static files
4. We need to copy their licenses as well, not just static files. Because we take their code / build result. They can go to our
#enhancement #good_first_issue #help_wanted #openapi #django_modern_rest
sent via relator
📝 Formalize our CDN / static files support for OpenAPI renderers (#678)
I think that we should be able to configure: do we want to use local static files, served by django for OpenAPI renderers and interactive APIs, or should we use CDN for this.
Currently:
• Swagger uses local static files
• Scalar / Redoc use CDNs
Plan:
1. Introduce
openapi_static_cdn: {'scalar': 'https://cdn_url.com'} option, where we can specify when these libs should use CDN2. Only when some lib has this explicit setting, we should use the CDN. Otherwise, they should use local static files which should be copied to
dmr3. We need to document the EXACT versions we have bundleded in our static files
4. We need to copy their licenses as well, not just static files. Because we take their code / build result. They can go to our
LICENSE.md at the very bottom, specify why it is there#enhancement #good_first_issue #help_wanted #openapi #django_modern_rest
sent via relator
Добавить два поля в openapi.Schema
https://github.com/wemake-services/django-modern-rest/issues/1039
#django_modern_rest #openapi
https://github.com/wemake-services/django-modern-rest/issues/1039
#django_modern_rest #openapi
GitHub
Support `$dynamicRef` and `$dynamicAnchor` openapi props · Issue #1039 · wemake-services/django-modern-rest
Spec: https://spec.openapis.org/oas/v3.2.0.html#generic-template-data-structures https://learn.openapis.org/referencing/dynamic.html Example: https://json-schema.org/blog/posts/dynamicref-and-gener...
👍1