umijs / plugins

🍣 The one-stop shop for official Umi plugins and presets.
349 stars 238 forks source link

openAPI 不支持enumStyle配置 #899

Open MicroOps-cn opened 2 years ago

MicroOps-cn commented 2 years ago

配置:

  openAPI: [
    {
      requestLibPath: "import { request } from 'umi'",
      schemaPath: 'http://127.1.1.1:8081/apidocs.json',
      projectName: 'idas',
      mock: false,
      enumStyle: 'enum',
    },
  ],

报错信息

yarn run v1.22.17
$ umi openapi
Validate config "openAPI" failed, "[0].enumStyle" is not allowed
ValidationError: "[0].enumStyle" is not allowed
 info  如果你需要进交流群,请访问 https://fb.umijs.org
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.