Skip to content

Commit

Permalink
fix: fix typo shema -> schema
Browse files Browse the repository at this point in the history
  • Loading branch information
tangcent committed Feb 13, 2020
1 parent c3da402 commit 6df0be4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/components/SchemaTable/SchemaTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { Component } from 'react';
import { Table } from 'antd';
import json5 from 'json5';
import PropTypes from 'prop-types';
import { schemaTransformToTable } from '../../../common/shema-transformTo-table.js';
import { schemaTransformToTable } from '../../../common/schema-transformTo-table.js';
import _ from 'underscore';
import './index.scss';

Expand Down
2 changes: 1 addition & 1 deletion common/markdown.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const schema = require('./shema-transformTo-table.js');
const schema = require('./schema-transformTo-table.js');
const _ = require('underscore');

const json_parse = function(json) {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion server/middleware/mockServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function mockValidator(interfaceData, ctx) {
if (noRequiredArr.length > 0 || (validResult && !validResult.valid)) {
let message = `错误信息:`;
message += noRequiredArr.length > 0 ? `缺少必须字段 ${noRequiredArr.join(',')} ` : '';
message += validResult && !validResult.valid ? `shema 验证请求参数 ${validResult.message}` : '';
message += validResult && !validResult.valid ? `schema 验证请求参数 ${validResult.message}` : '';

return {
valid: false,
Expand Down

0 comments on commit 6df0be4

Please sign in to comment.