You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/12/14 08:23:19 UTC

[GitHub] [apisix-dashboard] LiteSun commented on a change in pull request #1047: feat(plugin): use ajv to validate data

LiteSun commented on a change in pull request #1047:
URL: https://github.com/apache/apisix-dashboard/pull/1047#discussion_r542191543



##########
File path: web/src/components/Plugin/PluginPage.tsx
##########
@@ -18,7 +18,7 @@ import React, { useEffect, useState } from 'react';
 import { Anchor, Layout, Switch, Card, Tooltip, Button, notification, Avatar } from 'antd';
 import { SettingFilled } from '@ant-design/icons';
 import { PanelSection } from '@api7-dashboard/ui';
-import { validate } from 'json-schema';
+import Ajv, { JSONSchemaType, DefinedError } from "ajv"

Review comment:
       ```suggestion
   import Ajv, { JSONSchemaType, DefinedError } from "ajv";
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org