在API平台中启用ReDoc时出错

时间:2019-02-26 10:03:49

标签: swagger-ui symfony4 api-platform.com redoc

API平台版本: 1.2

这是我当前的api_platform配置文件:

api_platform:
    enable_swagger_ui: false
    enable_re_doc: true
    mapping:
        paths: ['%kernel.project_dir%/src/Entity']

启用ReDoc时出现此错误:

(1/1) InvalidConfigurationException
Unrecognized option "enable_re_doc" under "api_platform". Available options are 
"allow_plain_identifiers", "collection", "default_operation_path_resolver", 
"description", "eager_loading", "enable_docs", "enable_entrypoint", 
"enable_fos_user", "enable_nelmio_api_doc", "enable_profiler", 
"enable_swagger", "enable_swagger_ui", "error_formats", "exception_to_status", 
"formats", "graphql", "http_cache", "mapping", "name_converter", "oauth", 
"path_segment_name_generator", "resource_class_directories", "swagger", 
"title", "validator", "version".

0 个答案:

没有答案