docusaurus-theme-openapi-docs 0.0.0-1000
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/LICENSE +21 -0
- package/babel.config.js +35 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +81 -0
- package/lib/markdown/createDescription.d.ts +1 -0
- package/lib/markdown/createDescription.js +15 -0
- package/lib/markdown/schema.d.ts +3 -0
- package/lib/markdown/schema.js +149 -0
- package/lib/markdown/utils.d.ts +10 -0
- package/lib/markdown/utils.js +49 -0
- package/lib/markdown/utils.test.d.ts +1 -0
- package/lib/markdown/utils.test.js +43 -0
- package/lib/theme/ApiExplorer/Accept/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/Accept/index.js +38 -0
- package/lib/theme/ApiExplorer/Accept/slice.d.ts +11 -0
- package/lib/theme/ApiExplorer/Accept/slice.js +22 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Container/_Container.scss +7 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Container/index.d.ts +4 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Container/index.js +35 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Content/Element.d.ts +3 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Content/Element.js +41 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Content/String.d.ts +3 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Content/String.js +153 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Content/_Content.scss +91 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/CopyButton/_CopyButton.scss +44 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/CopyButton/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/CopyButton/index.js +147 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/ExitButton/_ExitButton.scss +16 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/ExitButton/index.d.ts +6 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/ExitButton/index.js +58 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/ExpandButton/_ExpandButton.scss +62 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/ExpandButton/index.d.ts +14 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/ExpandButton/index.js +248 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Line/_Line.scss +34 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Line/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Line/index.js +59 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/_WordWrapButton.scss +10 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/index.d.ts +7 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/index.js +51 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/index.js +110 -0
- package/lib/theme/ApiExplorer/Authorization/auth-types.d.ts +3 -0
- package/lib/theme/ApiExplorer/Authorization/auth-types.js +28 -0
- package/lib/theme/ApiExplorer/Authorization/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/Authorization/index.js +160 -0
- package/lib/theme/ApiExplorer/Authorization/slice.d.ts +40 -0
- package/lib/theme/ApiExplorer/Authorization/slice.js +102 -0
- package/lib/theme/ApiExplorer/Body/index.d.ts +10 -0
- package/lib/theme/ApiExplorer/Body/index.js +381 -0
- package/lib/theme/ApiExplorer/Body/json2xml.js +43 -0
- package/lib/theme/ApiExplorer/Body/slice.d.ts +82 -0
- package/lib/theme/ApiExplorer/Body/slice.js +97 -0
- package/lib/theme/ApiExplorer/CodeSnippets/code-snippets-types.d.ts +21 -0
- package/lib/theme/ApiExplorer/CodeSnippets/code-snippets-types.js +8 -0
- package/lib/theme/ApiExplorer/CodeSnippets/index.d.ts +10 -0
- package/lib/theme/ApiExplorer/CodeSnippets/index.js +389 -0
- package/lib/theme/ApiExplorer/CodeSnippets/languages.d.ts +5 -0
- package/lib/theme/ApiExplorer/CodeSnippets/languages.js +95 -0
- package/lib/theme/ApiExplorer/CodeSnippets/languages.json +1290 -0
- package/lib/theme/ApiExplorer/CodeTabs/_CodeTabs.scss +501 -0
- package/lib/theme/ApiExplorer/CodeTabs/index.d.ts +15 -0
- package/lib/theme/ApiExplorer/CodeTabs/index.js +271 -0
- package/lib/theme/ApiExplorer/ContentType/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/ContentType/index.js +40 -0
- package/lib/theme/ApiExplorer/ContentType/slice.d.ts +11 -0
- package/lib/theme/ApiExplorer/ContentType/slice.js +22 -0
- package/lib/theme/ApiExplorer/Export/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/Export/index.js +57 -0
- package/lib/theme/ApiExplorer/FloatingButton/_FloatingButton.scss +27 -0
- package/lib/theme/ApiExplorer/FloatingButton/index.d.ts +8 -0
- package/lib/theme/ApiExplorer/FloatingButton/index.js +28 -0
- package/lib/theme/ApiExplorer/FormFileUpload/_FormFileUpload.scss +74 -0
- package/lib/theme/ApiExplorer/FormFileUpload/index.d.ts +7 -0
- package/lib/theme/ApiExplorer/FormFileUpload/index.js +173 -0
- package/lib/theme/ApiExplorer/FormItem/_FormItem.scss +21 -0
- package/lib/theme/ApiExplorer/FormItem/index.d.ts +10 -0
- package/lib/theme/ApiExplorer/FormItem/index.js +44 -0
- package/lib/theme/ApiExplorer/FormMultiSelect/_FormMultiSelect.scss +30 -0
- package/lib/theme/ApiExplorer/FormMultiSelect/index.d.ts +9 -0
- package/lib/theme/ApiExplorer/FormMultiSelect/index.js +51 -0
- package/lib/theme/ApiExplorer/FormSelect/_FormSelect.scss +43 -0
- package/lib/theme/ApiExplorer/FormSelect/index.d.ts +8 -0
- package/lib/theme/ApiExplorer/FormSelect/index.js +35 -0
- package/lib/theme/ApiExplorer/FormTextInput/_FormTextInput.scss +34 -0
- package/lib/theme/ApiExplorer/FormTextInput/index.d.ts +9 -0
- package/lib/theme/ApiExplorer/FormTextInput/index.js +73 -0
- package/lib/theme/ApiExplorer/LiveEditor/_LiveEditor.scss +15 -0
- package/lib/theme/ApiExplorer/LiveEditor/index.d.ts +6 -0
- package/lib/theme/ApiExplorer/LiveEditor/index.js +168 -0
- package/lib/theme/ApiExplorer/MethodEndpoint/_MethodEndpoint.scss +22 -0
- package/lib/theme/ApiExplorer/MethodEndpoint/index.d.ts +8 -0
- package/lib/theme/ApiExplorer/MethodEndpoint/index.js +86 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamArrayFormItem.d.ts +6 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamArrayFormItem.js +220 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem.d.ts +6 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem.js +63 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.d.ts +6 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.js +89 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem.d.ts +6 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem.js +63 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamTextFormItem.d.ts +6 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamTextFormItem.js +38 -0
- package/lib/theme/ApiExplorer/ParamOptions/_ParamOptions.scss +123 -0
- package/lib/theme/ApiExplorer/ParamOptions/index.d.ts +7 -0
- package/lib/theme/ApiExplorer/ParamOptions/index.js +223 -0
- package/lib/theme/ApiExplorer/ParamOptions/slice.d.ts +17 -0
- package/lib/theme/ApiExplorer/ParamOptions/slice.js +25 -0
- package/lib/theme/ApiExplorer/Request/_Request.scss +129 -0
- package/lib/theme/ApiExplorer/Request/index.d.ts +6 -0
- package/lib/theme/ApiExplorer/Request/index.js +396 -0
- package/lib/theme/ApiExplorer/Request/makeRequest.d.ts +4 -0
- package/lib/theme/ApiExplorer/Request/makeRequest.js +222 -0
- package/lib/theme/ApiExplorer/Response/_Response.scss +121 -0
- package/lib/theme/ApiExplorer/Response/index.d.ts +6 -0
- package/lib/theme/ApiExplorer/Response/index.js +193 -0
- package/lib/theme/ApiExplorer/Response/slice.d.ts +17 -0
- package/lib/theme/ApiExplorer/Response/slice.js +51 -0
- package/lib/theme/ApiExplorer/SecuritySchemes/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/SecuritySchemes/index.js +380 -0
- package/lib/theme/ApiExplorer/Server/_Server.scss +26 -0
- package/lib/theme/ApiExplorer/Server/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/Server/index.js +199 -0
- package/lib/theme/ApiExplorer/Server/slice.d.ts +13 -0
- package/lib/theme/ApiExplorer/Server/slice.js +33 -0
- package/lib/theme/ApiExplorer/buildPostmanRequest.d.ts +20 -0
- package/lib/theme/ApiExplorer/buildPostmanRequest.js +465 -0
- package/lib/theme/ApiExplorer/index.d.ts +7 -0
- package/lib/theme/ApiExplorer/index.js +41 -0
- package/lib/theme/ApiExplorer/persistanceMiddleware.d.ts +3 -0
- package/lib/theme/ApiExplorer/persistanceMiddleware.js +54 -0
- package/lib/theme/ApiExplorer/storage-utils.d.ts +4 -0
- package/lib/theme/ApiExplorer/storage-utils.js +41 -0
- package/lib/theme/ApiItem/Layout/index.d.ts +3 -0
- package/lib/theme/ApiItem/Layout/index.js +121 -0
- package/lib/theme/ApiItem/Layout/styles.module.css +17 -0
- package/lib/theme/ApiItem/hooks.d.ts +12 -0
- package/lib/theme/ApiItem/hooks.js +13 -0
- package/lib/theme/ApiItem/index.d.ts +2 -0
- package/lib/theme/ApiItem/index.js +238 -0
- package/lib/theme/ApiItem/store.d.ts +46 -0
- package/lib/theme/ApiItem/store.js +53 -0
- package/lib/theme/ApiLogo/index.d.ts +2 -0
- package/lib/theme/ApiLogo/index.js +51 -0
- package/lib/theme/ApiTabs/_ApiTabs.scss +142 -0
- package/lib/theme/ApiTabs/index.d.ts +7 -0
- package/lib/theme/ApiTabs/index.js +270 -0
- package/lib/theme/ArrayBrackets/index.d.ts +3 -0
- package/lib/theme/ArrayBrackets/index.js +50 -0
- package/lib/theme/DiscriminatorTabs/_DiscriminatorTabs.scss +98 -0
- package/lib/theme/DiscriminatorTabs/index.d.ts +3 -0
- package/lib/theme/DiscriminatorTabs/index.js +258 -0
- package/lib/theme/Markdown/Details/_Details.scss +122 -0
- package/lib/theme/Markdown/index.js +179 -0
- package/lib/theme/MimeTabs/_MimeTabs.scss +70 -0
- package/lib/theme/MimeTabs/index.d.ts +6 -0
- package/lib/theme/MimeTabs/index.js +286 -0
- package/lib/theme/OperationTabs/_OperationTabs.scss +72 -0
- package/lib/theme/OperationTabs/index.d.ts +3 -0
- package/lib/theme/OperationTabs/index.js +248 -0
- package/lib/theme/ParamsDetails/index.d.ts +6 -0
- package/lib/theme/ParamsDetails/index.js +85 -0
- package/lib/theme/ParamsItem/_ParamsItem.scss +54 -0
- package/lib/theme/ParamsItem/index.d.ts +25 -0
- package/lib/theme/ParamsItem/index.js +218 -0
- package/lib/theme/RequestSchema/index.d.ts +15 -0
- package/lib/theme/RequestSchema/index.js +194 -0
- package/lib/theme/ResponseExamples/index.d.ts +18 -0
- package/lib/theme/ResponseExamples/index.js +193 -0
- package/lib/theme/ResponseHeaders/index.d.ts +13 -0
- package/lib/theme/ResponseHeaders/index.js +39 -0
- package/lib/theme/ResponseSamples/_ResponseSamples.scss +3 -0
- package/lib/theme/ResponseSamples/index.d.ts +8 -0
- package/lib/theme/ResponseSamples/index.js +27 -0
- package/lib/theme/ResponseSchema/index.d.ts +15 -0
- package/lib/theme/ResponseSchema/index.js +159 -0
- package/lib/theme/Schema/index.d.ts +8 -0
- package/lib/theme/Schema/index.js +885 -0
- package/lib/theme/SchemaItem/_SchemaItem.scss +89 -0
- package/lib/theme/SchemaItem/index.d.ts +12 -0
- package/lib/theme/SchemaItem/index.js +213 -0
- package/lib/theme/SchemaTabs/_SchemaTabs.scss +61 -0
- package/lib/theme/SchemaTabs/index.d.ts +3 -0
- package/lib/theme/SchemaTabs/index.js +255 -0
- package/lib/theme/SkeletonLoader/index.d.ts +6 -0
- package/lib/theme/SkeletonLoader/index.js +20 -0
- package/lib/theme/StatusCodes/index.d.ts +9 -0
- package/lib/theme/StatusCodes/index.js +81 -0
- package/lib/theme/styles.scss +212 -0
- package/lib/types.d.ts +157 -0
- package/lib/types.js +8 -0
- package/package.json +83 -0
- package/src/index.ts +85 -0
- package/src/markdown/createDescription.ts +13 -0
- package/src/markdown/schema.ts +181 -0
- package/src/markdown/utils.test.ts +49 -0
- package/src/markdown/utils.ts +59 -0
- package/src/plugin-content-docs.d.ts +20 -0
- package/src/postman-code-generators.d.ts +9 -0
- package/src/react-magic-dropzone.d.ts +9 -0
- package/src/theme/ApiExplorer/Accept/index.tsx +36 -0
- package/src/theme/ApiExplorer/Accept/slice.ts +29 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/Container/_Container.scss +7 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/Container/index.tsx +32 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/Content/Element.tsx +34 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/Content/String.tsx +134 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/Content/_Content.scss +91 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/CopyButton/_CopyButton.scss +44 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/CopyButton/index.tsx +79 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/ExitButton/_ExitButton.scss +16 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/ExitButton/index.tsx +55 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/ExpandButton/_ExpandButton.scss +62 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/ExpandButton/index.tsx +166 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/Line/_Line.scss +34 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/Line/index.tsx +48 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/_WordWrapButton.scss +10 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/index.tsx +54 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/index.tsx +45 -0
- package/src/theme/ApiExplorer/Authorization/auth-types.ts +30 -0
- package/src/theme/ApiExplorer/Authorization/index.tsx +158 -0
- package/src/theme/ApiExplorer/Authorization/slice.ts +146 -0
- package/src/theme/ApiExplorer/Body/index.tsx +376 -0
- package/src/theme/ApiExplorer/Body/json2xml.js +43 -0
- package/src/theme/ApiExplorer/Body/slice.ts +133 -0
- package/src/theme/ApiExplorer/CodeSnippets/code-snippets-types.ts +57 -0
- package/src/theme/ApiExplorer/CodeSnippets/index.tsx +338 -0
- package/src/theme/ApiExplorer/CodeSnippets/languages.json +1290 -0
- package/src/theme/ApiExplorer/CodeSnippets/languages.ts +96 -0
- package/src/theme/ApiExplorer/CodeTabs/_CodeTabs.scss +501 -0
- package/src/theme/ApiExplorer/CodeTabs/index.tsx +248 -0
- package/src/theme/ApiExplorer/ContentType/index.tsx +38 -0
- package/src/theme/ApiExplorer/ContentType/slice.ts +29 -0
- package/src/theme/ApiExplorer/Export/index.tsx +47 -0
- package/src/theme/ApiExplorer/FloatingButton/_FloatingButton.scss +27 -0
- package/src/theme/ApiExplorer/FloatingButton/index.tsx +29 -0
- package/src/theme/ApiExplorer/FormFileUpload/_FormFileUpload.scss +74 -0
- package/src/theme/ApiExplorer/FormFileUpload/index.tsx +119 -0
- package/src/theme/ApiExplorer/FormItem/_FormItem.scss +21 -0
- package/src/theme/ApiExplorer/FormItem/index.tsx +33 -0
- package/src/theme/ApiExplorer/FormMultiSelect/_FormMultiSelect.scss +30 -0
- package/src/theme/ApiExplorer/FormMultiSelect/index.tsx +57 -0
- package/src/theme/ApiExplorer/FormSelect/_FormSelect.scss +43 -0
- package/src/theme/ApiExplorer/FormSelect/index.tsx +38 -0
- package/src/theme/ApiExplorer/FormTextInput/_FormTextInput.scss +34 -0
- package/src/theme/ApiExplorer/FormTextInput/index.tsx +80 -0
- package/src/theme/ApiExplorer/LiveEditor/_LiveEditor.scss +15 -0
- package/src/theme/ApiExplorer/LiveEditor/index.tsx +114 -0
- package/src/theme/ApiExplorer/MethodEndpoint/_MethodEndpoint.scss +22 -0
- package/src/theme/ApiExplorer/MethodEndpoint/index.tsx +91 -0
- package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamArrayFormItem.tsx +175 -0
- package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem.tsx +64 -0
- package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.tsx +86 -0
- package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem.tsx +65 -0
- package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamTextFormItem.tsx +38 -0
- package/src/theme/ApiExplorer/ParamOptions/_ParamOptions.scss +123 -0
- package/src/theme/ApiExplorer/ParamOptions/index.tsx +146 -0
- package/src/theme/ApiExplorer/ParamOptions/slice.ts +37 -0
- package/src/theme/ApiExplorer/Request/_Request.scss +129 -0
- package/src/theme/ApiExplorer/Request/index.tsx +309 -0
- package/src/theme/ApiExplorer/Request/makeRequest.ts +254 -0
- package/src/theme/ApiExplorer/Response/_Response.scss +121 -0
- package/src/theme/ApiExplorer/Response/index.tsx +157 -0
- package/src/theme/ApiExplorer/Response/slice.ts +52 -0
- package/src/theme/ApiExplorer/SecuritySchemes/index.tsx +287 -0
- package/src/theme/ApiExplorer/Server/_Server.scss +26 -0
- package/src/theme/ApiExplorer/Server/index.tsx +130 -0
- package/src/theme/ApiExplorer/Server/slice.ts +39 -0
- package/src/theme/ApiExplorer/buildPostmanRequest.ts +526 -0
- package/src/theme/ApiExplorer/index.tsx +41 -0
- package/src/theme/ApiExplorer/persistanceMiddleware.ts +71 -0
- package/src/theme/ApiExplorer/postman-collection.d.ts +10 -0
- package/src/theme/ApiExplorer/react-modal.d.ts +8 -0
- package/src/theme/ApiExplorer/storage-utils.ts +39 -0
- package/src/theme/ApiItem/Layout/index.tsx +85 -0
- package/src/theme/ApiItem/Layout/styles.module.css +17 -0
- package/src/theme/ApiItem/hooks.ts +13 -0
- package/src/theme/ApiItem/index.tsx +222 -0
- package/src/theme/ApiItem/store.ts +51 -0
- package/src/theme/ApiLogo/index.tsx +52 -0
- package/src/theme/ApiTabs/_ApiTabs.scss +142 -0
- package/src/theme/ApiTabs/index.tsx +238 -0
- package/src/theme/ArrayBrackets/index.tsx +37 -0
- package/src/theme/DiscriminatorTabs/_DiscriminatorTabs.scss +98 -0
- package/src/theme/DiscriminatorTabs/index.tsx +229 -0
- package/src/theme/Markdown/Details/_Details.scss +122 -0
- package/src/theme/Markdown/index.js +179 -0
- package/src/theme/MimeTabs/_MimeTabs.scss +70 -0
- package/src/theme/MimeTabs/index.tsx +257 -0
- package/src/theme/OperationTabs/_OperationTabs.scss +72 -0
- package/src/theme/OperationTabs/index.tsx +220 -0
- package/src/theme/ParamsDetails/index.tsx +81 -0
- package/src/theme/ParamsItem/_ParamsItem.scss +54 -0
- package/src/theme/ParamsItem/index.tsx +205 -0
- package/src/theme/RequestSchema/index.tsx +157 -0
- package/src/theme/ResponseExamples/index.tsx +192 -0
- package/src/theme/ResponseHeaders/index.tsx +49 -0
- package/src/theme/ResponseSamples/_ResponseSamples.scss +3 -0
- package/src/theme/ResponseSamples/index.tsx +31 -0
- package/src/theme/ResponseSchema/index.tsx +144 -0
- package/src/theme/Schema/index.tsx +939 -0
- package/src/theme/SchemaItem/_SchemaItem.scss +89 -0
- package/src/theme/SchemaItem/index.tsx +198 -0
- package/src/theme/SchemaTabs/_SchemaTabs.scss +61 -0
- package/src/theme/SchemaTabs/index.tsx +224 -0
- package/src/theme/SkeletonLoader/index.tsx +18 -0
- package/src/theme/StatusCodes/index.tsx +72 -0
- package/src/theme/styles.scss +212 -0
- package/src/theme-classic.d.ts +80 -0
- package/src/theme-openapi.d.ts +288 -0
- package/src/theme-translations.d.ts +9 -0
- package/src/types.ts +182 -0
- package/tsconfig.json +16 -0
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
.openapi-params__list-item {
|
|
2
|
+
margin: 0 0 0 1rem !important;
|
|
3
|
+
position: relative;
|
|
4
|
+
padding-left: 1rem;
|
|
5
|
+
border-left: thin solid var(--openapi-tree-line-color) !important;
|
|
6
|
+
margin-top: unset !important;
|
|
7
|
+
|
|
8
|
+
// Horizonal line styling for param attributes
|
|
9
|
+
&::before {
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: 5px;
|
|
12
|
+
left: 0;
|
|
13
|
+
width: 0.7rem;
|
|
14
|
+
/* width of horizontal line */
|
|
15
|
+
height: 0.5rem;
|
|
16
|
+
/* vertical position of line */
|
|
17
|
+
vertical-align: top;
|
|
18
|
+
border-bottom: thin solid var(--openapi-tree-line-color);
|
|
19
|
+
content: "";
|
|
20
|
+
display: inline-block;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&:hover {
|
|
24
|
+
.openapi-schema__property {
|
|
25
|
+
color: var(--ifm-color-primary);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.openapi-schema__type {
|
|
31
|
+
opacity: 0.6;
|
|
32
|
+
padding-left: 0.3rem;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.openapi-schema__required {
|
|
36
|
+
display: inline-flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
font-size: 10.5px;
|
|
39
|
+
font-weight: bold;
|
|
40
|
+
color: var(--openapi-required);
|
|
41
|
+
margin-left: 1%;
|
|
42
|
+
background-color: transparent;
|
|
43
|
+
text-transform: uppercase;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.openapi-schema__divider {
|
|
47
|
+
flex-grow: 1;
|
|
48
|
+
border-bottom: thin solid var(--ifm-toc-border-color);
|
|
49
|
+
margin: 10px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.openapi-schema__container {
|
|
53
|
+
display: flex;
|
|
54
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface Map<T> {
|
|
3
|
+
[key: string]: T;
|
|
4
|
+
}
|
|
5
|
+
export interface ExampleObject {
|
|
6
|
+
summary?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
value?: any;
|
|
9
|
+
externalValue?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface Props {
|
|
12
|
+
className: string;
|
|
13
|
+
param: {
|
|
14
|
+
description: string;
|
|
15
|
+
example: any;
|
|
16
|
+
examples: Map<ExampleObject>;
|
|
17
|
+
name: string;
|
|
18
|
+
required: boolean;
|
|
19
|
+
deprecated: boolean;
|
|
20
|
+
schema: any;
|
|
21
|
+
enumDescriptions?: [string, string][];
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
declare function ParamsItem({ param, ...rest }: Props): React.JSX.Element;
|
|
25
|
+
export default ParamsItem;
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* ============================================================================
|
|
3
|
+
* Copyright (c) Palo Alto Networks
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
* ========================================================================== */
|
|
8
|
+
var __importDefault =
|
|
9
|
+
(this && this.__importDefault) ||
|
|
10
|
+
function (mod) {
|
|
11
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
const react_1 = __importDefault(require("react"));
|
|
15
|
+
const Markdown_1 = __importDefault(require("@theme/Markdown"));
|
|
16
|
+
const SchemaTabs_1 = __importDefault(require("@theme/SchemaTabs"));
|
|
17
|
+
const TabItem_1 = __importDefault(require("@theme/TabItem"));
|
|
18
|
+
/* eslint-disable import/no-extraneous-dependencies*/
|
|
19
|
+
const clsx_1 = __importDefault(require("clsx"));
|
|
20
|
+
const schema_1 = require("../../markdown/schema");
|
|
21
|
+
const utils_1 = require("../../markdown/utils");
|
|
22
|
+
const getEnumDescriptionMarkdown = (enumDescriptions) => {
|
|
23
|
+
if (enumDescriptions?.length) {
|
|
24
|
+
return `| Enum Value | Description |
|
|
25
|
+
| ---- | ----- |
|
|
26
|
+
${enumDescriptions
|
|
27
|
+
.map((desc) => {
|
|
28
|
+
return `| ${desc[0]} | ${desc[1]} | `.replaceAll("\n", "<br/>");
|
|
29
|
+
})
|
|
30
|
+
.join("\n")}
|
|
31
|
+
`;
|
|
32
|
+
}
|
|
33
|
+
return "";
|
|
34
|
+
};
|
|
35
|
+
function ParamsItem({ param, ...rest }) {
|
|
36
|
+
const {
|
|
37
|
+
description,
|
|
38
|
+
example,
|
|
39
|
+
examples,
|
|
40
|
+
name,
|
|
41
|
+
required,
|
|
42
|
+
deprecated,
|
|
43
|
+
enumDescriptions,
|
|
44
|
+
} = param;
|
|
45
|
+
let schema = param.schema;
|
|
46
|
+
let defaultValue;
|
|
47
|
+
if (!schema) {
|
|
48
|
+
schema = { type: "any" };
|
|
49
|
+
}
|
|
50
|
+
if (!schema.type) {
|
|
51
|
+
schema.type = "any";
|
|
52
|
+
}
|
|
53
|
+
if (schema) {
|
|
54
|
+
if (schema.items) {
|
|
55
|
+
defaultValue = schema.items.default;
|
|
56
|
+
} else {
|
|
57
|
+
defaultValue = schema.default;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
const renderSchemaName = (0, utils_1.guard)(schema, (schema) =>
|
|
61
|
+
react_1.default.createElement(
|
|
62
|
+
"span",
|
|
63
|
+
{ className: "openapi-schema__type" },
|
|
64
|
+
" ",
|
|
65
|
+
(0, schema_1.getSchemaName)(schema)
|
|
66
|
+
)
|
|
67
|
+
);
|
|
68
|
+
const renderSchemaRequired = (0, utils_1.guard)(required, () =>
|
|
69
|
+
react_1.default.createElement(
|
|
70
|
+
"span",
|
|
71
|
+
{ className: "openapi-schema__required" },
|
|
72
|
+
"required"
|
|
73
|
+
)
|
|
74
|
+
);
|
|
75
|
+
const renderDeprecated = (0, utils_1.guard)(deprecated, () =>
|
|
76
|
+
react_1.default.createElement(
|
|
77
|
+
"span",
|
|
78
|
+
{ className: "openapi-schema__deprecated" },
|
|
79
|
+
"deprecated"
|
|
80
|
+
)
|
|
81
|
+
);
|
|
82
|
+
const renderQualifier = (0, utils_1.guard)(
|
|
83
|
+
(0, schema_1.getQualifierMessage)(schema),
|
|
84
|
+
(qualifier) =>
|
|
85
|
+
react_1.default.createElement(Markdown_1.default, null, qualifier)
|
|
86
|
+
);
|
|
87
|
+
const renderDescription = (0, utils_1.guard)(description, (description) =>
|
|
88
|
+
react_1.default.createElement(Markdown_1.default, null, description)
|
|
89
|
+
);
|
|
90
|
+
const renderEnumDescriptions = (0, utils_1.guard)(
|
|
91
|
+
getEnumDescriptionMarkdown(enumDescriptions),
|
|
92
|
+
(value) => {
|
|
93
|
+
return react_1.default.createElement(
|
|
94
|
+
"div",
|
|
95
|
+
{ style: { marginTop: ".5rem" } },
|
|
96
|
+
react_1.default.createElement(Markdown_1.default, null, value)
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
);
|
|
100
|
+
function renderDefaultValue() {
|
|
101
|
+
if (defaultValue !== undefined) {
|
|
102
|
+
if (typeof defaultValue === "string") {
|
|
103
|
+
return react_1.default.createElement(
|
|
104
|
+
"div",
|
|
105
|
+
null,
|
|
106
|
+
react_1.default.createElement("strong", null, "Default value: "),
|
|
107
|
+
react_1.default.createElement(
|
|
108
|
+
"span",
|
|
109
|
+
null,
|
|
110
|
+
react_1.default.createElement("code", null, defaultValue)
|
|
111
|
+
)
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
return react_1.default.createElement(
|
|
115
|
+
"div",
|
|
116
|
+
null,
|
|
117
|
+
react_1.default.createElement("strong", null, "Default value: "),
|
|
118
|
+
react_1.default.createElement(
|
|
119
|
+
"span",
|
|
120
|
+
null,
|
|
121
|
+
react_1.default.createElement(
|
|
122
|
+
"code",
|
|
123
|
+
null,
|
|
124
|
+
JSON.stringify(defaultValue)
|
|
125
|
+
)
|
|
126
|
+
)
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
return undefined;
|
|
130
|
+
}
|
|
131
|
+
const renderExample = (0, utils_1.guard)(
|
|
132
|
+
(0, utils_1.toString)(example),
|
|
133
|
+
(example) =>
|
|
134
|
+
react_1.default.createElement(
|
|
135
|
+
"div",
|
|
136
|
+
null,
|
|
137
|
+
react_1.default.createElement("strong", null, "Example: "),
|
|
138
|
+
example
|
|
139
|
+
)
|
|
140
|
+
);
|
|
141
|
+
const renderExamples = (0, utils_1.guard)(examples, (examples) => {
|
|
142
|
+
const exampleEntries = Object.entries(examples);
|
|
143
|
+
return react_1.default.createElement(
|
|
144
|
+
react_1.default.Fragment,
|
|
145
|
+
null,
|
|
146
|
+
react_1.default.createElement("strong", null, "Examples:"),
|
|
147
|
+
react_1.default.createElement(
|
|
148
|
+
SchemaTabs_1.default,
|
|
149
|
+
null,
|
|
150
|
+
exampleEntries.map(([exampleName, exampleProperties]) =>
|
|
151
|
+
// @ts-ignore
|
|
152
|
+
react_1.default.createElement(
|
|
153
|
+
TabItem_1.default,
|
|
154
|
+
{ value: exampleName, label: exampleName },
|
|
155
|
+
exampleProperties.summary &&
|
|
156
|
+
react_1.default.createElement(
|
|
157
|
+
"p",
|
|
158
|
+
null,
|
|
159
|
+
exampleProperties.summary
|
|
160
|
+
),
|
|
161
|
+
exampleProperties.description &&
|
|
162
|
+
react_1.default.createElement(
|
|
163
|
+
"p",
|
|
164
|
+
null,
|
|
165
|
+
react_1.default.createElement("strong", null, "Description: "),
|
|
166
|
+
react_1.default.createElement(
|
|
167
|
+
"span",
|
|
168
|
+
null,
|
|
169
|
+
exampleProperties.description
|
|
170
|
+
)
|
|
171
|
+
),
|
|
172
|
+
react_1.default.createElement(
|
|
173
|
+
"p",
|
|
174
|
+
null,
|
|
175
|
+
react_1.default.createElement("strong", null, "Example: "),
|
|
176
|
+
react_1.default.createElement(
|
|
177
|
+
"code",
|
|
178
|
+
null,
|
|
179
|
+
exampleProperties.value
|
|
180
|
+
)
|
|
181
|
+
)
|
|
182
|
+
)
|
|
183
|
+
)
|
|
184
|
+
)
|
|
185
|
+
);
|
|
186
|
+
});
|
|
187
|
+
return react_1.default.createElement(
|
|
188
|
+
"div",
|
|
189
|
+
{ className: "openapi-params__list-item" },
|
|
190
|
+
react_1.default.createElement(
|
|
191
|
+
"span",
|
|
192
|
+
{ className: "openapi-schema__container" },
|
|
193
|
+
react_1.default.createElement(
|
|
194
|
+
"strong",
|
|
195
|
+
{
|
|
196
|
+
className: (0, clsx_1.default)("openapi-schema__property", {
|
|
197
|
+
"openapi-schema__strikethrough": deprecated,
|
|
198
|
+
}),
|
|
199
|
+
},
|
|
200
|
+
name
|
|
201
|
+
),
|
|
202
|
+
renderSchemaName,
|
|
203
|
+
(required || deprecated) &&
|
|
204
|
+
react_1.default.createElement("span", {
|
|
205
|
+
className: "openapi-schema__divider",
|
|
206
|
+
}),
|
|
207
|
+
renderSchemaRequired,
|
|
208
|
+
renderDeprecated
|
|
209
|
+
),
|
|
210
|
+
renderQualifier,
|
|
211
|
+
renderDescription,
|
|
212
|
+
renderEnumDescriptions,
|
|
213
|
+
renderDefaultValue(),
|
|
214
|
+
renderExample,
|
|
215
|
+
renderExamples
|
|
216
|
+
);
|
|
217
|
+
}
|
|
218
|
+
exports.default = ParamsItem;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { MediaTypeObject } from "docusaurus-plugin-openapi-docs/lib/openapi/types";
|
|
3
|
+
interface Props {
|
|
4
|
+
style?: React.CSSProperties;
|
|
5
|
+
title: string;
|
|
6
|
+
body: {
|
|
7
|
+
content?: {
|
|
8
|
+
[key: string]: MediaTypeObject;
|
|
9
|
+
};
|
|
10
|
+
description?: string;
|
|
11
|
+
required?: string[] | boolean;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
declare const RequestSchema: React.FC<Props>;
|
|
15
|
+
export default RequestSchema;
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* ============================================================================
|
|
3
|
+
* Copyright (c) Palo Alto Networks
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
* ========================================================================== */
|
|
8
|
+
var __importDefault =
|
|
9
|
+
(this && this.__importDefault) ||
|
|
10
|
+
function (mod) {
|
|
11
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
const react_1 = __importDefault(require("react"));
|
|
15
|
+
const BrowserOnly_1 = __importDefault(require("@docusaurus/BrowserOnly"));
|
|
16
|
+
const Details_1 = __importDefault(require("@theme/Details"));
|
|
17
|
+
const Markdown_1 = __importDefault(require("@theme/Markdown"));
|
|
18
|
+
const MimeTabs_1 = __importDefault(require("@theme/MimeTabs")); // Assume these components exist
|
|
19
|
+
const Schema_1 = __importDefault(require("@theme/Schema"));
|
|
20
|
+
const SkeletonLoader_1 = __importDefault(require("@theme/SkeletonLoader"));
|
|
21
|
+
const TabItem_1 = __importDefault(require("@theme/TabItem"));
|
|
22
|
+
const RequestSchemaComponent = ({ title, body, style }) => {
|
|
23
|
+
if (
|
|
24
|
+
body === undefined ||
|
|
25
|
+
body.content === undefined ||
|
|
26
|
+
Object.keys(body).length === 0 ||
|
|
27
|
+
Object.keys(body.content).length === 0
|
|
28
|
+
) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
const mimeTypes = Object.keys(body.content);
|
|
32
|
+
if (mimeTypes.length > 1) {
|
|
33
|
+
return react_1.default.createElement(
|
|
34
|
+
MimeTabs_1.default,
|
|
35
|
+
{ className: "openapi-tabs__mime", schemaType: "request" },
|
|
36
|
+
mimeTypes.map((mimeType) => {
|
|
37
|
+
const firstBody = body.content[mimeType].schema;
|
|
38
|
+
if (
|
|
39
|
+
firstBody === undefined ||
|
|
40
|
+
(firstBody.properties &&
|
|
41
|
+
Object.keys(firstBody.properties).length === 0)
|
|
42
|
+
) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
return (
|
|
46
|
+
// @ts-ignore
|
|
47
|
+
react_1.default.createElement(
|
|
48
|
+
TabItem_1.default,
|
|
49
|
+
{ key: mimeType, label: mimeType, value: mimeType },
|
|
50
|
+
react_1.default.createElement(
|
|
51
|
+
Details_1.default,
|
|
52
|
+
{
|
|
53
|
+
className: "openapi-markdown__details mime",
|
|
54
|
+
"data-collapsed": false,
|
|
55
|
+
open: true,
|
|
56
|
+
style: style,
|
|
57
|
+
summary: react_1.default.createElement(
|
|
58
|
+
react_1.default.Fragment,
|
|
59
|
+
null,
|
|
60
|
+
react_1.default.createElement(
|
|
61
|
+
"summary",
|
|
62
|
+
null,
|
|
63
|
+
react_1.default.createElement(
|
|
64
|
+
"h3",
|
|
65
|
+
{
|
|
66
|
+
className:
|
|
67
|
+
"openapi-markdown__details-summary-header-body",
|
|
68
|
+
},
|
|
69
|
+
title,
|
|
70
|
+
body.required === true &&
|
|
71
|
+
react_1.default.createElement(
|
|
72
|
+
"span",
|
|
73
|
+
{ className: "openapi-schema__required" },
|
|
74
|
+
"required"
|
|
75
|
+
)
|
|
76
|
+
)
|
|
77
|
+
)
|
|
78
|
+
),
|
|
79
|
+
},
|
|
80
|
+
react_1.default.createElement(
|
|
81
|
+
"div",
|
|
82
|
+
{ style: { textAlign: "left", marginLeft: "1rem" } },
|
|
83
|
+
body.description &&
|
|
84
|
+
react_1.default.createElement(
|
|
85
|
+
"div",
|
|
86
|
+
{ style: { marginTop: "1rem", marginBottom: "1rem" } },
|
|
87
|
+
react_1.default.createElement(
|
|
88
|
+
Markdown_1.default,
|
|
89
|
+
null,
|
|
90
|
+
body.description
|
|
91
|
+
)
|
|
92
|
+
)
|
|
93
|
+
),
|
|
94
|
+
react_1.default.createElement(
|
|
95
|
+
"ul",
|
|
96
|
+
{ style: { marginLeft: "1rem" } },
|
|
97
|
+
react_1.default.createElement(Schema_1.default, {
|
|
98
|
+
schema: firstBody,
|
|
99
|
+
schemaType: "request",
|
|
100
|
+
})
|
|
101
|
+
)
|
|
102
|
+
)
|
|
103
|
+
)
|
|
104
|
+
);
|
|
105
|
+
})
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
const randomFirstKey = mimeTypes[0];
|
|
109
|
+
const firstBody =
|
|
110
|
+
body.content[randomFirstKey].schema ?? body.content[randomFirstKey];
|
|
111
|
+
if (firstBody === undefined) {
|
|
112
|
+
return null;
|
|
113
|
+
}
|
|
114
|
+
return react_1.default.createElement(
|
|
115
|
+
MimeTabs_1.default,
|
|
116
|
+
{ className: "openapi-tabs__mime", schemaType: "request" },
|
|
117
|
+
react_1.default.createElement(
|
|
118
|
+
TabItem_1.default,
|
|
119
|
+
{ label: randomFirstKey, value: `${randomFirstKey}-schema` },
|
|
120
|
+
react_1.default.createElement(
|
|
121
|
+
Details_1.default,
|
|
122
|
+
{
|
|
123
|
+
className: "openapi-markdown__details mime",
|
|
124
|
+
"data-collapsed": false,
|
|
125
|
+
open: true,
|
|
126
|
+
style: style,
|
|
127
|
+
summary: react_1.default.createElement(
|
|
128
|
+
react_1.default.Fragment,
|
|
129
|
+
null,
|
|
130
|
+
react_1.default.createElement(
|
|
131
|
+
"summary",
|
|
132
|
+
null,
|
|
133
|
+
react_1.default.createElement(
|
|
134
|
+
"h3",
|
|
135
|
+
{ className: "openapi-markdown__details-summary-header-body" },
|
|
136
|
+
title,
|
|
137
|
+
firstBody.type === "array" &&
|
|
138
|
+
react_1.default.createElement(
|
|
139
|
+
"span",
|
|
140
|
+
{ style: { opacity: "0.6" } },
|
|
141
|
+
" array"
|
|
142
|
+
),
|
|
143
|
+
body.required &&
|
|
144
|
+
react_1.default.createElement(
|
|
145
|
+
"strong",
|
|
146
|
+
{ className: "openapi-schema__required" },
|
|
147
|
+
"required"
|
|
148
|
+
)
|
|
149
|
+
)
|
|
150
|
+
)
|
|
151
|
+
),
|
|
152
|
+
},
|
|
153
|
+
react_1.default.createElement(
|
|
154
|
+
"div",
|
|
155
|
+
{ style: { textAlign: "left", marginLeft: "1rem" } },
|
|
156
|
+
body.description &&
|
|
157
|
+
react_1.default.createElement(
|
|
158
|
+
"div",
|
|
159
|
+
{ style: { marginTop: "1rem", marginBottom: "1rem" } },
|
|
160
|
+
react_1.default.createElement(
|
|
161
|
+
Markdown_1.default,
|
|
162
|
+
null,
|
|
163
|
+
body.description
|
|
164
|
+
)
|
|
165
|
+
)
|
|
166
|
+
),
|
|
167
|
+
react_1.default.createElement(
|
|
168
|
+
"ul",
|
|
169
|
+
{ style: { marginLeft: "1rem" } },
|
|
170
|
+
react_1.default.createElement(Schema_1.default, {
|
|
171
|
+
schema: firstBody,
|
|
172
|
+
schemaType: "request",
|
|
173
|
+
})
|
|
174
|
+
)
|
|
175
|
+
)
|
|
176
|
+
)
|
|
177
|
+
);
|
|
178
|
+
};
|
|
179
|
+
const RequestSchema = (props) => {
|
|
180
|
+
return react_1.default.createElement(
|
|
181
|
+
BrowserOnly_1.default,
|
|
182
|
+
{
|
|
183
|
+
fallback: react_1.default.createElement(SkeletonLoader_1.default, {
|
|
184
|
+
size: "sm",
|
|
185
|
+
}),
|
|
186
|
+
},
|
|
187
|
+
() => {
|
|
188
|
+
return react_1.default.createElement(RequestSchemaComponent, {
|
|
189
|
+
...props,
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
);
|
|
193
|
+
};
|
|
194
|
+
exports.default = RequestSchema;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare function json2xml(o: Record<string, any>, tab: string): string;
|
|
3
|
+
interface ResponseExamplesProps {
|
|
4
|
+
responseExamples: any;
|
|
5
|
+
mimeType: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const ResponseExamples: React.FC<ResponseExamplesProps>;
|
|
8
|
+
interface ResponseExampleProps {
|
|
9
|
+
responseExample: any;
|
|
10
|
+
mimeType: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const ResponseExample: React.FC<ResponseExampleProps>;
|
|
13
|
+
interface ExampleFromSchemaProps {
|
|
14
|
+
schema: any;
|
|
15
|
+
mimeType: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const ExampleFromSchema: React.FC<ExampleFromSchemaProps>;
|
|
18
|
+
export {};
|