@digi-frontend/dgate-api-documentation 1.0.20 → 1.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index3.js +1 -1
- package/dist/_virtual/index4.js +1 -1
- package/dist/_virtual/index5.js +1 -1
- package/dist/_virtual/index6.js +1 -1
- package/dist/node_modules/toposort/index.js +1 -1
- package/dist/node_modules/yup/index.esm.js +1 -1
- package/dist/src/components/InfoForm/InfoForm.js +1 -1
- package/dist/src/components/InfoForm/InfoForm.js.map +1 -1
- package/dist/src/components/JsonInput/JsonInput.js +1 -1
- package/dist/src/components/JsonInput/JsonInput.js.map +1 -1
- package/dist/src/components/LivePreview/LivePreview.js +1 -1
- package/dist/src/components/LivePreview/LivePreview.js.map +1 -1
- package/dist/src/components/MethodAccordion/MethodAccordion.js +1 -1
- package/dist/src/components/MethodAccordion/MethodAccordion.js.map +1 -1
- package/dist/src/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/src/components/table/table.js +1 -1
- package/dist/src/components/table/table.js.map +1 -1
- package/dist/src/components/table/tags-table.js +1 -1
- package/dist/src/components/table/tags-table.js.map +1 -1
- package/dist/src/constants/regex.js +1 -1
- package/dist/src/constants/regex.js.map +1 -1
- package/dist/src/layout/layout.js +1 -1
- package/dist/src/layout/layout.js.map +1 -1
- package/dist/src/validator/form.scheme.js +1 -1
- package/dist/src/validator/form.scheme.js.map +1 -1
- package/dist/styles.css +488 -488
- package/dist/types/components/Tooltip/Tooltip.d.ts +2 -2
- package/dist/types/constants/regex.d.ts +1 -0
- package/dist/types/layout/layout.d.ts +2 -1
- package/dist/types/validator/form.scheme.d.ts +1 -1
- package/package.json +2 -2
- package/src/components/InfoForm/InfoForm.tsx +37 -15
- package/src/components/JsonInput/JsonInput.tsx +7 -1
- package/src/components/LivePreview/LivePreview.tsx +40 -22
- package/src/components/MethodAccordion/MethodAccordion.tsx +37 -15
- package/src/components/Tooltip/Tooltip.scss +3 -3
- package/src/components/Tooltip/Tooltip.tsx +2 -3
- package/src/components/table/table.tsx +3 -1
- package/src/components/table/tags-table.tsx +27 -5
- package/src/constants/regex.ts +1 -0
- package/src/layout/layout.tsx +49 -7
- package/src/validator/form.scheme.ts +9 -9
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as yup from
|
|
1
|
+
import * as yup from 'yup'
|
|
2
2
|
export const schemaValidation = yup.object({
|
|
3
3
|
openapi: yup.string().required(),
|
|
4
4
|
info: yup
|
|
5
5
|
.object({
|
|
6
|
-
title: yup.string().required(
|
|
7
|
-
description: yup.string().
|
|
8
|
-
version: yup.string().required(
|
|
6
|
+
title: yup.string().trim().required('API Name is required.'),
|
|
7
|
+
description: yup.string().required(),
|
|
8
|
+
version: yup.string().required('API Version is required'),
|
|
9
9
|
})
|
|
10
10
|
.required(),
|
|
11
11
|
servers: yup
|
|
@@ -32,8 +32,8 @@ export const schemaValidation = yup.object({
|
|
|
32
32
|
yup.object(
|
|
33
33
|
props
|
|
34
34
|
? Object.keys(props).reduce((acc, propKey) => {
|
|
35
|
-
acc[propKey] = yup.mixed()
|
|
36
|
-
return acc
|
|
35
|
+
acc[propKey] = yup.mixed()
|
|
36
|
+
return acc
|
|
37
37
|
}, {})
|
|
38
38
|
: {}
|
|
39
39
|
)
|
|
@@ -42,8 +42,8 @@ export const schemaValidation = yup.object({
|
|
|
42
42
|
items: yup.mixed().optional(),
|
|
43
43
|
enum: yup.array(yup.string()).optional(),
|
|
44
44
|
required: yup.array(yup.string()).optional(),
|
|
45
|
-
})
|
|
46
|
-
return acc
|
|
45
|
+
})
|
|
46
|
+
return acc
|
|
47
47
|
}, {})
|
|
48
48
|
: {}
|
|
49
49
|
)
|
|
@@ -67,4 +67,4 @@ export const schemaValidation = yup.object({
|
|
|
67
67
|
})
|
|
68
68
|
)
|
|
69
69
|
.optional(),
|
|
70
|
-
})
|
|
70
|
+
})
|