@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.
Files changed (42) hide show
  1. package/dist/_virtual/index3.js +1 -1
  2. package/dist/_virtual/index4.js +1 -1
  3. package/dist/_virtual/index5.js +1 -1
  4. package/dist/_virtual/index6.js +1 -1
  5. package/dist/node_modules/toposort/index.js +1 -1
  6. package/dist/node_modules/yup/index.esm.js +1 -1
  7. package/dist/src/components/InfoForm/InfoForm.js +1 -1
  8. package/dist/src/components/InfoForm/InfoForm.js.map +1 -1
  9. package/dist/src/components/JsonInput/JsonInput.js +1 -1
  10. package/dist/src/components/JsonInput/JsonInput.js.map +1 -1
  11. package/dist/src/components/LivePreview/LivePreview.js +1 -1
  12. package/dist/src/components/LivePreview/LivePreview.js.map +1 -1
  13. package/dist/src/components/MethodAccordion/MethodAccordion.js +1 -1
  14. package/dist/src/components/MethodAccordion/MethodAccordion.js.map +1 -1
  15. package/dist/src/components/Tooltip/Tooltip.js.map +1 -1
  16. package/dist/src/components/table/table.js +1 -1
  17. package/dist/src/components/table/table.js.map +1 -1
  18. package/dist/src/components/table/tags-table.js +1 -1
  19. package/dist/src/components/table/tags-table.js.map +1 -1
  20. package/dist/src/constants/regex.js +1 -1
  21. package/dist/src/constants/regex.js.map +1 -1
  22. package/dist/src/layout/layout.js +1 -1
  23. package/dist/src/layout/layout.js.map +1 -1
  24. package/dist/src/validator/form.scheme.js +1 -1
  25. package/dist/src/validator/form.scheme.js.map +1 -1
  26. package/dist/styles.css +488 -488
  27. package/dist/types/components/Tooltip/Tooltip.d.ts +2 -2
  28. package/dist/types/constants/regex.d.ts +1 -0
  29. package/dist/types/layout/layout.d.ts +2 -1
  30. package/dist/types/validator/form.scheme.d.ts +1 -1
  31. package/package.json +2 -2
  32. package/src/components/InfoForm/InfoForm.tsx +37 -15
  33. package/src/components/JsonInput/JsonInput.tsx +7 -1
  34. package/src/components/LivePreview/LivePreview.tsx +40 -22
  35. package/src/components/MethodAccordion/MethodAccordion.tsx +37 -15
  36. package/src/components/Tooltip/Tooltip.scss +3 -3
  37. package/src/components/Tooltip/Tooltip.tsx +2 -3
  38. package/src/components/table/table.tsx +3 -1
  39. package/src/components/table/tags-table.tsx +27 -5
  40. package/src/constants/regex.ts +1 -0
  41. package/src/layout/layout.tsx +49 -7
  42. package/src/validator/form.scheme.ts +9 -9
@@ -1,11 +1,11 @@
1
- import * as yup from "yup";
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("API Name is required."),
7
- description: yup.string().optional(),
8
- version: yup.string().required("API Version is 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
+ })