Spaces:
Configuration error
Configuration error
from drf_yasg.generators import OpenAPISchemaGenerator | |
class BothHttpAndHttpsSchemaGenerator(OpenAPISchemaGenerator): | |
def get_schema(self, request=None, public=False): | |
schema = super().get_schema(request, public) | |
schema.schemes = ["http", "https"] | |
return schema |