@redocly/openapi-docs 3.11.0-rc.1 → 3.11.0
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.md +1 -1
- package/dist/redocly-openapi-docs.min.js +11829 -10841
- package/lib/components/ApiInfo/ApiInfo.d.ts +1 -1
- package/lib/components/ApiInfo/ApiInfo.js +1 -2
- package/lib/components/ApiInfo/Metadata.d.ts +1 -1
- package/lib/components/ApiInfo/Metadata.js +1 -2
- package/lib/components/ApiInfo/index.d.ts +1 -1
- package/lib/components/ApiInfo/index.js +1 -2
- package/lib/components/ApiInfo/styled.d.ts +4 -4
- package/lib/components/ApiInfo/styled.js +8 -9
- package/lib/components/CallbackSamples/CallbackSamples.js +4 -5
- package/lib/components/CallbackSamples/index.d.ts +1 -1
- package/lib/components/CallbackSamples/index.js +1 -2
- package/lib/components/Callbacks/CallbackDetails.d.ts +1 -1
- package/lib/components/Callbacks/CallbackDetails.js +3 -4
- package/lib/components/Callbacks/CallbackOperation.d.ts +1 -1
- package/lib/components/Callbacks/CallbackOperation.js +3 -4
- package/lib/components/Callbacks/CallbackSummary.d.ts +1 -1
- package/lib/components/Callbacks/CallbackSummary.js +3 -4
- package/lib/components/Callbacks/CallbacksList.d.ts +1 -1
- package/lib/components/Callbacks/CallbacksList.js +1 -2
- package/lib/components/Callbacks/index.d.ts +3 -3
- package/lib/components/Callbacks/index.js +1 -2
- package/lib/components/Callbacks/styled.d.ts +1 -3
- package/lib/components/Callbacks/styled.js +2 -3
- package/lib/components/Content/Content.d.ts +1 -1
- package/lib/components/Content/Content.js +1 -2
- package/lib/components/Content/index.d.ts +1 -1
- package/lib/components/Content/index.js +1 -2
- package/lib/components/Content/useAutoScroll.js +1 -2
- package/lib/components/ContentItem/ContentItem.d.ts +1 -1
- package/lib/components/ContentItem/ContentItem.js +1 -2
- package/lib/components/ContentItem/index.d.ts +1 -1
- package/lib/components/ContentItem/index.js +1 -2
- package/lib/components/ContentItem/useIsExpanded.d.ts +1 -1
- package/lib/components/ContentItem/useIsExpanded.js +1 -2
- package/lib/components/ContentItems/ContentItems.d.ts +1 -1
- package/lib/components/ContentItems/ContentItems.js +1 -2
- package/lib/components/ContentItems/Items.js +1 -2
- package/lib/components/ContentItems/VirtualList.d.ts +1 -1
- package/lib/components/ContentItems/VirtualList.js +1 -2
- package/lib/components/ContentItems/helpers.d.ts +3 -3
- package/lib/components/ContentItems/helpers.js +1 -2
- package/lib/components/ContentItems/index.d.ts +1 -1
- package/lib/components/ContentItems/index.js +1 -2
- package/lib/components/ContentItems/useScrollOnRender.d.ts +1 -1
- package/lib/components/ContentItems/useScrollOnRender.js +1 -2
- package/lib/components/Discriminator/Discriminator.d.ts +1 -1
- package/lib/components/Discriminator/Discriminator.js +2 -3
- package/lib/components/Discriminator/index.d.ts +1 -1
- package/lib/components/Discriminator/index.js +1 -2
- package/lib/components/Download/DownloadSpecification.js +4 -5
- package/lib/components/Download/index.d.ts +1 -1
- package/lib/components/Download/index.js +1 -2
- package/lib/components/Download/types.js +0 -2
- package/lib/components/Download/useDownloadInfo.d.ts +1 -1
- package/lib/components/Download/useDownloadInfo.js +1 -2
- package/lib/components/ErrorBoundary/ErrorBoundary.js +2 -3
- package/lib/components/ErrorBoundary/index.d.ts +1 -1
- package/lib/components/ErrorBoundary/index.js +1 -2
- package/lib/components/ExpandAllButton/ExpandAllButton.js +2 -3
- package/lib/components/ExpandAllButton/index.d.ts +1 -1
- package/lib/components/ExpandAllButton/index.js +1 -2
- package/lib/components/ExternalDocumentation/ExternalDocumentation.d.ts +1 -1
- package/lib/components/ExternalDocumentation/ExternalDocumentation.js +4 -5
- package/lib/components/ExternalDocumentation/index.d.ts +1 -1
- package/lib/components/ExternalDocumentation/index.js +1 -2
- package/lib/components/Language/LanguageDropdown.d.ts +1 -1
- package/lib/components/Language/LanguageDropdown.js +1 -2
- package/lib/components/Language/LanguageItem.d.ts +1 -1
- package/lib/components/Language/LanguageItem.js +1 -2
- package/lib/components/Language/LanguageList.d.ts +1 -1
- package/lib/components/Language/LanguageList.js +1 -2
- package/lib/components/Language/_tests_/LanguageDropdown.test.js +1 -2
- package/lib/components/Language/constants.js +1 -2
- package/lib/components/Language/index.d.ts +3 -3
- package/lib/components/Language/index.js +1 -2
- package/lib/components/Language/styled.d.ts +8 -31
- package/lib/components/Language/styled.js +11 -12
- package/lib/components/Markdown/Markdown.d.ts +1 -1
- package/lib/components/Markdown/Markdown.js +1 -2
- package/lib/components/Markdown/index.d.ts +2 -2
- package/lib/components/Markdown/index.js +1 -2
- package/lib/components/Markdown/types.js +0 -2
- package/lib/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +2 -2
- package/lib/components/MediaTypeSwitch/MediaTypesSwitch.js +1 -2
- package/lib/components/MediaTypeSwitch/index.d.ts +1 -1
- package/lib/components/MediaTypeSwitch/index.js +1 -2
- package/lib/components/OperationItem/Description.d.ts +1 -1
- package/lib/components/OperationItem/Description.js +1 -2
- package/lib/components/OperationItem/OperationItem.d.ts +1 -3
- package/lib/components/OperationItem/OperationItem.js +5 -6
- package/lib/components/OperationItem/_tests_/OperationItem.test.js +1 -2
- package/lib/components/OperationItem/_tests_/__mocks__/mock-intersection-observer.js +1 -2
- package/lib/components/OperationItem/index.d.ts +2 -2
- package/lib/components/OperationItem/index.js +1 -2
- package/lib/components/OperationItem/types.d.ts +1 -1
- package/lib/components/OperationItem/types.js +0 -2
- package/lib/components/Overlay.d.ts +1 -1
- package/lib/components/Overlay.js +3 -4
- package/lib/components/Overview/Overview.d.ts +1 -1
- package/lib/components/Overview/Overview.js +1 -2
- package/lib/components/Overview/index.d.ts +1 -1
- package/lib/components/Overview/index.js +1 -2
- package/lib/components/PageFooter/PageFooter.js +1 -2
- package/lib/components/PageFooter/index.d.ts +1 -1
- package/lib/components/PageFooter/index.js +1 -2
- package/lib/components/Panel/ResponsePanel.d.ts +2 -3
- package/lib/components/Panel/ResponsePanel.js +6 -7
- package/lib/components/Panel/Trigger.d.ts +1 -1
- package/lib/components/Panel/Trigger.js +2 -3
- package/lib/components/Panel/index.d.ts +2 -2
- package/lib/components/Panel/index.js +1 -2
- package/lib/components/PanelItem/PanelItem.js +1 -2
- package/lib/components/PanelItem/index.d.ts +2 -2
- package/lib/components/PanelItem/index.js +1 -2
- package/lib/components/PanelItem/styled.d.ts +8 -16
- package/lib/components/PanelItem/styled.js +9 -10
- package/lib/components/PayloadSamples/Example.d.ts +1 -1
- package/lib/components/PayloadSamples/Example.js +1 -2
- package/lib/components/PayloadSamples/ExampleValue.d.ts +1 -1
- package/lib/components/PayloadSamples/ExampleValue.js +1 -2
- package/lib/components/PayloadSamples/MediaTypeSamples.d.ts +1 -1
- package/lib/components/PayloadSamples/MediaTypeSamples.js +2 -3
- package/lib/components/PayloadSamples/PayloadSamples.d.ts +1 -1
- package/lib/components/PayloadSamples/PayloadSamples.js +1 -2
- package/lib/components/PayloadSamples/index.d.ts +6 -5
- package/lib/components/PayloadSamples/index.js +1 -2
- package/lib/components/PayloadSamples/styled.d.ts +3 -4
- package/lib/components/PayloadSamples/styled.js +4 -5
- package/lib/components/PayloadSamples/types.d.ts +3 -3
- package/lib/components/PayloadSamples/types.js +0 -2
- package/lib/components/PropertyDetails/DescriptionEnums.d.ts +1 -1
- package/lib/components/PropertyDetails/DescriptionEnums.js +3 -4
- package/lib/components/PropertyDetails/EnumValues.d.ts +1 -1
- package/lib/components/PropertyDetails/EnumValues.js +1 -2
- package/lib/components/PropertyDetails/Examples.d.ts +1 -1
- package/lib/components/PropertyDetails/Examples.js +1 -2
- package/lib/components/PropertyDetails/Extensions.d.ts +1 -1
- package/lib/components/PropertyDetails/Extensions.js +2 -3
- package/lib/components/PropertyDetails/FieldDetail.js +2 -3
- package/lib/components/PropertyDetails/FieldDetails.d.ts +1 -1
- package/lib/components/PropertyDetails/FieldDetails.js +6 -7
- package/lib/components/PropertyDetails/Pattern.js +1 -2
- package/lib/components/PropertyDetails/PlusCircleIcon.js +4 -5
- package/lib/components/PropertyDetails/PropertyDetails.d.ts +1 -1
- package/lib/components/PropertyDetails/PropertyDetails.js +2 -3
- package/lib/components/PropertyDetails/SchemaTypeInfo.js +2 -3
- package/lib/components/PropertyDetails/SimpleEnums.d.ts +1 -1
- package/lib/components/PropertyDetails/SimpleEnums.js +2 -3
- package/lib/components/PropertyDetails/cycleColorsByLevel.js +1 -2
- package/lib/components/PropertyDetails/index.d.ts +3 -3
- package/lib/components/PropertyDetails/index.js +1 -2
- package/lib/components/PropertyDetails/styled.d.ts +6 -6
- package/lib/components/PropertyDetails/styled.js +7 -8
- package/lib/components/PropertyDetails/types.d.ts +3 -2
- package/lib/components/PropertyDetails/types.js +0 -2
- package/lib/components/RedoclyOpenAPIDocs/Providers.d.ts +2 -3
- package/lib/components/RedoclyOpenAPIDocs/Providers.js +1 -2
- package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.d.ts +2 -3
- package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.js +1 -2
- package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsStandalone.d.ts +8 -0
- package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsStandalone.js +1 -0
- package/lib/components/RedoclyOpenAPIDocs/index.d.ts +4 -4
- package/lib/components/RedoclyOpenAPIDocs/index.js +1 -2
- package/lib/components/RedoclyOpenAPIDocs/styled.d.ts +1 -1
- package/lib/components/RedoclyOpenAPIDocs/styled.js +2 -3
- package/lib/components/RedoclyOpenAPIDocs/types.d.ts +3 -3
- package/lib/components/RedoclyOpenAPIDocs/types.js +0 -2
- package/lib/components/RedoclyOpenAPIDocs/utils.d.ts +1 -4
- package/lib/components/RedoclyOpenAPIDocs/utils.js +1 -2
- package/lib/components/RenderHook/RenderHook.d.ts +2 -2
- package/lib/components/RenderHook/RenderHook.js +1 -2
- package/lib/components/RenderHook/index.d.ts +1 -1
- package/lib/components/RenderHook/index.js +1 -2
- package/lib/components/Replay/EmbeddedReplay.d.ts +1 -1
- package/lib/components/Replay/EmbeddedReplay.js +3 -4
- package/lib/components/Replay/Replay.d.ts +1 -1
- package/lib/components/Replay/Replay.js +1 -2
- package/lib/components/Replay/index.d.ts +2 -2
- package/lib/components/Replay/index.js +1 -2
- package/lib/components/Replay/utils.d.ts +4 -4
- package/lib/components/Replay/utils.js +1 -2
- package/lib/components/Request/RequestDetails.d.ts +1 -1
- package/lib/components/Request/RequestDetails.js +2 -3
- package/lib/components/Request/types.js +0 -2
- package/lib/components/RequestParameters/Body.d.ts +1 -1
- package/lib/components/RequestParameters/Body.js +1 -2
- package/lib/components/RequestParameters/ParametersGroup.d.ts +1 -1
- package/lib/components/RequestParameters/ParametersGroup.js +4 -5
- package/lib/components/RequestParameters/RequestParameters.d.ts +1 -1
- package/lib/components/RequestParameters/RequestParameters.js +1 -2
- package/lib/components/RequestParameters/index.d.ts +3 -2
- package/lib/components/RequestParameters/index.js +1 -2
- package/lib/components/RequestSamples/CodeSample.d.ts +3 -3
- package/lib/components/RequestSamples/CodeSample.js +2 -3
- package/lib/components/RequestSamples/Example.d.ts +1 -1
- package/lib/components/RequestSamples/Example.js +1 -2
- package/lib/components/RequestSamples/RequestSamples.d.ts +2 -2
- package/lib/components/RequestSamples/RequestSamples.js +5 -6
- package/lib/components/RequestSamples/index.d.ts +2 -2
- package/lib/components/RequestSamples/index.js +1 -2
- package/lib/components/RequestSamples/useCodeSamples.d.ts +3 -3
- package/lib/components/RequestSamples/useCodeSamples.js +1 -2
- package/lib/components/ResponseSamples/ResponseSamples.d.ts +2 -2
- package/lib/components/ResponseSamples/ResponseSamples.js +1 -2
- package/lib/components/ResponseSamples/Summary.js +1 -2
- package/lib/components/ResponseSamples/index.d.ts +1 -1
- package/lib/components/ResponseSamples/index.js +1 -2
- package/lib/components/Responses/OperationResponseList.d.ts +3 -3
- package/lib/components/Responses/OperationResponseList.js +2 -3
- package/lib/components/Responses/ResponseDetails.d.ts +1 -1
- package/lib/components/Responses/ResponseDetails.js +1 -2
- package/lib/components/Responses/ResponseHeaders.d.ts +1 -1
- package/lib/components/Responses/ResponseHeaders.js +1 -2
- package/lib/components/Responses/index.d.ts +5 -3
- package/lib/components/Responses/index.js +1 -2
- package/lib/components/Responses/styled.d.ts +5 -5
- package/lib/components/Responses/styled.js +6 -7
- package/lib/components/Responses/types.d.ts +1 -1
- package/lib/components/Responses/types.js +0 -2
- package/lib/components/RightPanel/RightPanel.d.ts +1 -1
- package/lib/components/RightPanel/RightPanel.js +1 -2
- package/lib/components/RightPanel/index.d.ts +1 -1
- package/lib/components/RightPanel/index.js +1 -2
- package/lib/components/Samples/ExampleSwitch.d.ts +1 -1
- package/lib/components/Samples/ExampleSwitch.js +1 -2
- package/lib/components/Samples/index.d.ts +2 -2
- package/lib/components/Samples/index.js +1 -2
- package/lib/components/Samples/use-example-key.d.ts +1 -1
- package/lib/components/Samples/use-example-key.js +1 -2
- package/lib/components/Schema/ArraySchema.d.ts +1 -1
- package/lib/components/Schema/ArraySchema.js +1 -2
- package/lib/components/Schema/ObjectSchema.d.ts +1 -1
- package/lib/components/Schema/ObjectSchema.js +1 -2
- package/lib/components/Schema/OneOfSchema.d.ts +11 -2
- package/lib/components/Schema/OneOfSchema.js +3 -4
- package/lib/components/Schema/RecursiveSchema.d.ts +1 -1
- package/lib/components/Schema/RecursiveSchema.js +1 -2
- package/lib/components/Schema/Schema.d.ts +1 -1
- package/lib/components/Schema/Schema.js +2 -3
- package/lib/components/Schema/SubSchema.js +1 -2
- package/lib/components/Schema/helpers.d.ts +1 -1
- package/lib/components/Schema/helpers.js +1 -2
- package/lib/components/Schema/index.d.ts +5 -5
- package/lib/components/Schema/index.js +1 -2
- package/lib/components/Schema/types.d.ts +7 -1
- package/lib/components/Schema/types.js +0 -2
- package/lib/components/Schema/useOneOfLocationIdx.d.ts +1 -1
- package/lib/components/Schema/useOneOfLocationIdx.js +1 -2
- package/lib/components/SchemaDefinition/SchemaDefinition.js +2 -3
- package/lib/components/SchemaDefinition/index.d.ts +1 -1
- package/lib/components/SchemaDefinition/index.js +1 -2
- package/lib/components/SectionContent/SectionContent.d.ts +3 -10
- package/lib/components/SectionContent/SectionContent.js +6 -7
- package/lib/components/SectionContent/index.d.ts +1 -1
- package/lib/components/SectionContent/index.js +1 -2
- package/lib/components/SectionItem/SectionItem.d.ts +1 -1
- package/lib/components/SectionItem/SectionItem.js +1 -2
- package/lib/components/SectionItem/index.d.ts +1 -1
- package/lib/components/SectionItem/index.js +1 -2
- package/lib/components/Security/Divider.js +2 -3
- package/lib/components/Security/OAuthFlow.d.ts +1 -1
- package/lib/components/Security/OAuthFlow.js +1 -2
- package/lib/components/Security/OAuthScopes.d.ts +2 -2
- package/lib/components/Security/OAuthScopes.js +9 -10
- package/lib/components/Security/Security.d.ts +1 -1
- package/lib/components/Security/Security.js +1 -2
- package/lib/components/Security/SecurityButton.d.ts +1 -1
- package/lib/components/Security/SecurityButton.js +7 -8
- package/lib/components/Security/SecurityFlow.d.ts +1 -1
- package/lib/components/Security/SecurityFlow.js +4 -5
- package/lib/components/Security/SecurityModal.d.ts +1 -1
- package/lib/components/Security/SecurityModal.js +5 -6
- package/lib/components/Security/SecuritySchemeItem.js +4 -5
- package/lib/components/Security/helper.d.ts +1 -1
- package/lib/components/Security/helper.js +1 -2
- package/lib/components/Security/index.d.ts +10 -1
- package/lib/components/Security/index.js +1 -2
- package/lib/components/Security/styled.d.ts +2 -2
- package/lib/components/Security/styled.js +3 -4
- package/lib/components/SelectOrLabel/SelectOrLabel.d.ts +1 -1
- package/lib/components/SelectOrLabel/SelectOrLabel.js +2 -3
- package/lib/components/SelectOrLabel/index.d.ts +1 -1
- package/lib/components/SelectOrLabel/index.js +1 -2
- package/lib/components/ServerList/ServerList.d.ts +1 -1
- package/lib/components/ServerList/ServerList.js +10 -11
- package/lib/components/ServerList/index.d.ts +1 -1
- package/lib/components/ServerList/index.js +1 -2
- package/lib/components/ServerList/types.d.ts +1 -1
- package/lib/components/ServerList/types.js +0 -2
- package/lib/components/ServerListDropdown/ServerListDropdown.d.ts +1 -1
- package/lib/components/ServerListDropdown/ServerListDropdown.js +1 -2
- package/lib/components/ServerListDropdown/index.d.ts +1 -1
- package/lib/components/ServerListDropdown/index.js +1 -2
- package/lib/components/ServerListDropdown/styled.d.ts +4 -5
- package/lib/components/ServerListDropdown/styled.js +6 -7
- package/lib/components/SideMenu/SideMenu.d.ts +2 -2
- package/lib/components/SideMenu/SideMenu.js +2 -3
- package/lib/components/SideMenu/hooks/useMenuItems.d.ts +2 -2
- package/lib/components/SideMenu/hooks/useMenuItems.js +1 -2
- package/lib/components/SideMenu/index.d.ts +1 -1
- package/lib/components/SideMenu/index.js +1 -2
- package/lib/components/SideMenu/types.d.ts +1 -1
- package/lib/components/SideMenu/types.js +0 -2
- package/lib/components/StickySidebar/SidebarActions.js +2 -3
- package/lib/components/StickySidebar/StickyResponsiveSidebar.js +3 -4
- package/lib/components/StickySidebar/index.d.ts +1 -1
- package/lib/components/StickySidebar/index.js +1 -2
- package/lib/components/Tabs/Tabs.d.ts +1 -1
- package/lib/components/Tabs/Tabs.js +5 -6
- package/lib/components/Tabs/index.d.ts +2 -2
- package/lib/components/Tabs/index.js +1 -2
- package/lib/components/Tabs/useTabsState.d.ts +1 -1
- package/lib/components/Tabs/useTabsState.js +1 -2
- package/lib/components/TagItem/OperationNavigationItems.d.ts +1 -1
- package/lib/components/TagItem/OperationNavigationItems.js +4 -5
- package/lib/components/TagItem/OperationsNavigation.d.ts +1 -1
- package/lib/components/TagItem/OperationsNavigation.js +2 -3
- package/lib/components/TagItem/TagItem.d.ts +1 -1
- package/lib/components/TagItem/TagItem.js +7 -9
- package/lib/components/TagItem/index.d.ts +1 -1
- package/lib/components/TagItem/index.js +1 -2
- package/lib/components/TagItem/styled.d.ts +1 -1
- package/lib/components/TagItem/styled.js +2 -3
- package/lib/components/TagItem/types.d.ts +1 -1
- package/lib/components/TagItem/types.js +0 -2
- package/lib/components/ViewNested/ViewNested.js +7 -8
- package/lib/components/ViewNested/index.d.ts +1 -1
- package/lib/components/ViewNested/index.js +1 -2
- package/lib/components/common/Badges.d.ts +3 -7
- package/lib/components/common/Badges.js +4 -5
- package/lib/components/common/BodyContent/BodyContent.d.ts +1 -1
- package/lib/components/common/BodyContent/BodyContent.js +4 -5
- package/lib/components/common/BodyContent/index.d.ts +1 -1
- package/lib/components/common/BodyContent/index.js +1 -2
- package/lib/components/common/ClearButton/ClearButton.d.ts +1 -1
- package/lib/components/common/ClearButton/ClearButton.js +1 -2
- package/lib/components/common/ClearButton/index.d.ts +2 -2
- package/lib/components/common/ClearButton/index.js +1 -2
- package/lib/components/common/ClearButton/styled.d.ts +1 -1
- package/lib/components/common/ClearButton/styled.js +2 -3
- package/lib/components/common/ClearButton/types.js +0 -2
- package/lib/components/common/CodeBlockPanel.d.ts +1 -2
- package/lib/components/common/CodeBlockPanel.js +3 -4
- package/lib/components/common/ConstraintsView.js +2 -3
- package/lib/components/common/Dropdown/Dropdown.js +4 -5
- package/lib/components/common/Dropdown/index.d.ts +2 -2
- package/lib/components/common/Dropdown/index.js +1 -2
- package/lib/components/common/ExpandableExample/ExpandableExample.js +3 -4
- package/lib/components/common/ExpandableExample/index.d.ts +1 -1
- package/lib/components/common/ExpandableExample/index.js +1 -2
- package/lib/components/common/Extensions.js +2 -3
- package/lib/components/common/Fields/fields-layout.d.ts +8 -14
- package/lib/components/common/Fields/fields-layout.js +57 -50
- package/lib/components/common/Fields/fields.d.ts +17 -38
- package/lib/components/common/Fields/fields.js +17 -18
- package/lib/components/common/Fields/index.d.ts +2 -2
- package/lib/components/common/Fields/index.js +1 -2
- package/lib/components/common/LinkToField.d.ts +2 -5
- package/lib/components/common/LinkToField.js +6 -7
- package/lib/components/common/OperationItemTitle.d.ts +2 -2
- package/lib/components/common/OperationItemTitle.js +5 -6
- package/lib/components/common/SchemaSelection/SchemaSelection.d.ts +1 -1
- package/lib/components/common/SchemaSelection/SchemaSelection.js +1 -2
- package/lib/components/common/SchemaSelection/index.d.ts +1 -1
- package/lib/components/common/SchemaSelection/index.js +1 -2
- package/lib/components/common/Select/Select.d.ts +1 -1
- package/lib/components/common/Select/Select.js +1 -2
- package/lib/components/common/Select/index.d.ts +2 -2
- package/lib/components/common/Select/index.js +1 -2
- package/lib/components/common/Select/styled.d.ts +4 -22
- package/lib/components/common/Select/styled.js +12 -13
- package/lib/components/common/Select/types.js +0 -2
- package/lib/components/common/Skeleton/LanguageListSkeleton.js +6 -7
- package/lib/components/common/Skeleton/Skeleton.d.ts +1 -3
- package/lib/components/common/Skeleton/Skeleton.js +5 -6
- package/lib/components/common/Skeleton/index.d.ts +2 -1
- package/lib/components/common/Skeleton/index.js +1 -2
- package/lib/components/common/headers.d.ts +1 -1
- package/lib/components/common/headers.js +2 -3
- package/lib/components/common/index.d.ts +14 -14
- package/lib/components/common/index.js +1 -2
- package/lib/components/common/linkify.d.ts +1 -1
- package/lib/components/common/linkify.js +4 -5
- package/lib/components/common/mixins.js +2 -3
- package/lib/components/common/panels.d.ts +4 -17
- package/lib/components/common/panels.js +27 -28
- package/lib/components/common/schema.d.ts +4 -7
- package/lib/components/common/schema.js +8 -9
- package/lib/components/common/styled.d.ts +6 -7
- package/lib/components/common/styled.js +7 -8
- package/lib/components/index.d.ts +23 -23
- package/lib/components/index.js +1 -2
- package/lib/components/pluggable/RedocExample.d.ts +1 -1
- package/lib/components/pluggable/RedocExample.js +1 -2
- package/lib/components/pluggable/RedocSchema.d.ts +4 -2
- package/lib/components/pluggable/RedocSchema.js +1 -2
- package/lib/components/pluggable/index.d.ts +2 -2
- package/lib/components/pluggable/index.js +1 -2
- package/lib/components/pluggable/styled.components.d.ts +3 -7
- package/lib/components/pluggable/styled.components.js +4 -5
- package/lib/constants.js +1 -2
- package/lib/empty.d.ts +5 -2
- package/lib/empty.js +1 -2
- package/lib/events/codeSampleCopy.d.ts +1 -1
- package/lib/events/codeSampleCopy.js +1 -2
- package/lib/events/creator.d.ts +1 -1
- package/lib/events/creator.js +1 -2
- package/lib/events/index.d.ts +8 -8
- package/lib/events/index.js +1 -2
- package/lib/events/languageSwitch.d.ts +1 -1
- package/lib/events/languageSwitch.js +1 -2
- package/lib/events/panelToggle.d.ts +1 -1
- package/lib/events/panelToggle.js +1 -2
- package/lib/events/serverSwitch.d.ts +1 -1
- package/lib/events/serverSwitch.js +1 -2
- package/lib/events/tryItOpen.d.ts +1 -1
- package/lib/events/tryItOpen.js +1 -2
- package/lib/events/tryItSent.d.ts +1 -1
- package/lib/events/tryItSent.js +1 -2
- package/lib/events/types.d.ts +1 -1
- package/lib/events/types.js +1 -2
- package/lib/hoc/types.d.ts +3 -3
- package/lib/hoc/types.js +0 -2
- package/lib/hoc/utils.js +1 -2
- package/lib/hoc/withRouter.d.ts +1 -1
- package/lib/hoc/withRouter.js +1 -2
- package/lib/hoc/withStore.d.ts +1 -1
- package/lib/hoc/withStore.js +1 -2
- package/lib/hooks/index.d.ts +8 -8
- package/lib/hooks/index.js +1 -2
- package/lib/hooks/useActivateExample.d.ts +1 -1
- package/lib/hooks/useActivateExample.js +1 -2
- package/lib/hooks/useActiveWithFallback.js +1 -2
- package/lib/hooks/useContentItems.d.ts +2 -2
- package/lib/hooks/useContentItems.js +1 -2
- package/lib/hooks/useLicense.d.ts +1 -1
- package/lib/hooks/useLicense.js +1 -2
- package/lib/hooks/usePerformanceMetrics.js +1 -2
- package/lib/hooks/useRouter.d.ts +1 -1
- package/lib/hooks/useRouter.js +1 -2
- package/lib/hooks/useTelemetry.js +1 -2
- package/lib/hooks/useTranslate.js +1 -2
- package/lib/hooks/useUppercase2LowercaseRedirect.js +1 -2
- package/lib/icons/CSharpIcon/CSharpIcon.d.ts +1 -3
- package/lib/icons/CSharpIcon/CSharpIcon.js +1 -2
- package/lib/icons/CSharpIcon/index.d.ts +1 -1
- package/lib/icons/CSharpIcon/index.js +1 -2
- package/lib/icons/CurlIcon/CurlIcon.d.ts +1 -3
- package/lib/icons/CurlIcon/CurlIcon.js +2 -3
- package/lib/icons/CurlIcon/index.d.ts +1 -1
- package/lib/icons/CurlIcon/index.js +1 -2
- package/lib/icons/GOIcon/GOIcon.d.ts +1 -3
- package/lib/icons/GOIcon/GOIcon.js +1 -2
- package/lib/icons/GOIcon/index.d.ts +1 -1
- package/lib/icons/GOIcon/index.js +1 -2
- package/lib/icons/JavaIcon/JavaIcon.d.ts +1 -3
- package/lib/icons/JavaIcon/JavaIcon.js +1 -2
- package/lib/icons/JavaIcon/index.d.ts +1 -1
- package/lib/icons/JavaIcon/index.js +1 -2
- package/lib/icons/JavaScriptIcon/JavaScriptIcon.d.ts +1 -3
- package/lib/icons/JavaScriptIcon/JavaScriptIcon.js +1 -2
- package/lib/icons/JavaScriptIcon/index.d.ts +1 -1
- package/lib/icons/JavaScriptIcon/index.js +1 -2
- package/lib/icons/NodeJSIcon/NodeJSIcon.d.ts +1 -3
- package/lib/icons/NodeJSIcon/NodeJSIcon.js +1 -2
- package/lib/icons/NodeJSIcon/index.d.ts +1 -1
- package/lib/icons/NodeJSIcon/index.js +1 -2
- package/lib/icons/PHPIcon/PHPIcon.d.ts +1 -3
- package/lib/icons/PHPIcon/PHPIcon.js +1 -2
- package/lib/icons/PHPIcon/index.d.ts +1 -1
- package/lib/icons/PHPIcon/index.js +1 -2
- package/lib/icons/PayloadIcon/PayloadIcon.d.ts +1 -3
- package/lib/icons/PayloadIcon/PayloadIcon.js +1 -2
- package/lib/icons/PayloadIcon/index.d.ts +1 -1
- package/lib/icons/PayloadIcon/index.js +1 -2
- package/lib/icons/PythonIcon/PythonIcon.d.ts +1 -3
- package/lib/icons/PythonIcon/PythonIcon.js +1 -2
- package/lib/icons/PythonIcon/index.d.ts +1 -1
- package/lib/icons/PythonIcon/index.js +1 -2
- package/lib/icons/RIcon/RIcon.d.ts +1 -3
- package/lib/icons/RIcon/RIcon.js +1 -2
- package/lib/icons/RIcon/index.d.ts +1 -1
- package/lib/icons/RIcon/index.js +1 -2
- package/lib/icons/RubyIcon/RubyIcon.d.ts +1 -3
- package/lib/icons/RubyIcon/RubyIcon.js +1 -2
- package/lib/icons/RubyIcon/index.d.ts +1 -1
- package/lib/icons/RubyIcon/index.js +1 -2
- package/lib/index.d.ts +52 -43
- package/lib/index.js +1 -2
- package/lib/jotai/app.d.ts +2 -2
- package/lib/jotai/app.js +1 -2
- package/lib/jotai/operation.js +1 -2
- package/lib/jotai/replay.d.ts +1 -1
- package/lib/jotai/replay.js +1 -2
- package/lib/jotai/store.d.ts +1 -1
- package/lib/jotai/store.js +1 -2
- package/lib/jotai/use-write-atom.js +1 -2
- package/lib/models/callback.d.ts +3 -3
- package/lib/models/callback.js +1 -2
- package/lib/models/code-sample-options.d.ts +2 -2
- package/lib/models/code-sample-options.js +0 -2
- package/lib/models/example.d.ts +3 -3
- package/lib/models/example.js +1 -2
- package/lib/models/field.d.ts +3 -3
- package/lib/models/field.js +1 -2
- package/lib/models/group.d.ts +3 -3
- package/lib/models/group.js +1 -2
- package/lib/models/index.d.ts +15 -15
- package/lib/models/index.js +1 -2
- package/lib/models/mediaContent.d.ts +2 -2
- package/lib/models/mediaContent.js +1 -2
- package/lib/models/mediaType.d.ts +3 -3
- package/lib/models/mediaType.js +1 -2
- package/lib/models/operation.d.ts +3 -3
- package/lib/models/operation.js +1 -2
- package/lib/models/request.d.ts +3 -3
- package/lib/models/request.js +1 -2
- package/lib/models/response.d.ts +3 -3
- package/lib/models/response.js +1 -2
- package/lib/models/schema.d.ts +3 -3
- package/lib/models/schema.js +2 -2
- package/lib/models/security.d.ts +3 -3
- package/lib/models/security.js +1 -2
- package/lib/models/tab.js +0 -2
- package/lib/models/types.d.ts +4 -4
- package/lib/models/types.js +0 -2
- package/lib/services/OpenAPIParser.d.ts +3 -3
- package/lib/services/OpenAPIParser.js +1 -2
- package/lib/services/check.js +1 -2
- package/lib/services/code-samples/constants.d.ts +1 -1
- package/lib/services/code-samples/constants.js +1 -2
- package/lib/services/code-samples/generator.d.ts +3 -3
- package/lib/services/code-samples/generator.js +1 -2
- package/lib/services/code-samples/httpsnippet/helpers/code-builder.d.ts +2 -2
- package/lib/services/code-samples/httpsnippet/helpers/code-builder.js +3 -2
- package/lib/services/code-samples/httpsnippet/helpers/code-helpers.d.ts +2 -2
- package/lib/services/code-samples/httpsnippet/helpers/code-helpers.js +2 -2
- package/lib/services/code-samples/httpsnippet/helpers/constants.js +1 -2
- package/lib/services/code-samples/httpsnippet/helpers/lodash-int.js +1 -2
- package/lib/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.js +37 -2
- package/lib/services/code-samples/httpsnippet/helpers/reducer.js +1 -2
- package/lib/services/code-samples/httpsnippet/helpers/shell.js +1 -2
- package/lib/services/code-samples/httpsnippet/helpers/string-utility.js +1 -2
- package/lib/services/code-samples/httpsnippet/index.d.ts +12 -6
- package/lib/services/code-samples/httpsnippet/index.js +1 -2
- package/lib/services/code-samples/httpsnippet/targets/__mocks__/mock.js +146 -2
- package/lib/services/code-samples/httpsnippet/targets/csharp/httpclient.d.ts +2 -2
- package/lib/services/code-samples/httpsnippet/targets/csharp/httpclient.js +2 -2
- package/lib/services/code-samples/httpsnippet/targets/csharp/index.d.ts +1 -1
- package/lib/services/code-samples/httpsnippet/targets/csharp/index.js +1 -2
- package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/httpclient.d.ts +2 -2
- package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/httpclient.js +2 -2
- package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/index.d.ts +1 -1
- package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/index.js +1 -2
- package/lib/services/code-samples/httpsnippet/targets/go/index.d.ts +1 -1
- package/lib/services/code-samples/httpsnippet/targets/go/index.js +1 -2
- package/lib/services/code-samples/httpsnippet/targets/go/native.d.ts +2 -2
- package/lib/services/code-samples/httpsnippet/targets/go/native.js +3 -2
- package/lib/services/code-samples/httpsnippet/targets/index.d.ts +12 -12
- package/lib/services/code-samples/httpsnippet/targets/index.js +1 -2
- package/lib/services/code-samples/httpsnippet/targets/java/httpclient.d.ts +2 -2
- package/lib/services/code-samples/httpsnippet/targets/java/httpclient.js +3 -2
- package/lib/services/code-samples/httpsnippet/targets/java/index.d.ts +1 -1
- package/lib/services/code-samples/httpsnippet/targets/java/index.js +1 -2
- package/lib/services/code-samples/httpsnippet/targets/java8/apachehttp.d.ts +2 -2
- package/lib/services/code-samples/httpsnippet/targets/java8/apachehttp.js +2 -2
- package/lib/services/code-samples/httpsnippet/targets/java8/index.d.ts +1 -1
- package/lib/services/code-samples/httpsnippet/targets/java8/index.js +1 -2
- package/lib/services/code-samples/httpsnippet/targets/javascript/fetch.d.ts +2 -2
- package/lib/services/code-samples/httpsnippet/targets/javascript/fetch.js +1 -2
- package/lib/services/code-samples/httpsnippet/targets/javascript/index.d.ts +1 -1
- package/lib/services/code-samples/httpsnippet/targets/javascript/index.js +1 -2
- package/lib/services/code-samples/httpsnippet/targets/node/fetch.d.ts +2 -2
- package/lib/services/code-samples/httpsnippet/targets/node/fetch.js +1 -2
- package/lib/services/code-samples/httpsnippet/targets/node/index.d.ts +1 -1
- package/lib/services/code-samples/httpsnippet/targets/node/index.js +1 -2
- package/lib/services/code-samples/httpsnippet/targets/php/curl.d.ts +2 -2
- package/lib/services/code-samples/httpsnippet/targets/php/curl.js +5 -2
- package/lib/services/code-samples/httpsnippet/targets/php/index.d.ts +1 -1
- package/lib/services/code-samples/httpsnippet/targets/php/index.js +1 -2
- package/lib/services/code-samples/httpsnippet/targets/php/types.js +0 -2
- package/lib/services/code-samples/httpsnippet/targets/php/utils.d.ts +1 -1
- package/lib/services/code-samples/httpsnippet/targets/php/utils.js +5 -2
- package/lib/services/code-samples/httpsnippet/targets/python/index.d.ts +1 -1
- package/lib/services/code-samples/httpsnippet/targets/python/index.js +1 -2
- package/lib/services/code-samples/httpsnippet/targets/python/requests.d.ts +2 -2
- package/lib/services/code-samples/httpsnippet/targets/python/requests.js +6 -2
- package/lib/services/code-samples/httpsnippet/targets/r/httr.d.ts +2 -2
- package/lib/services/code-samples/httpsnippet/targets/r/httr.js +1 -2
- package/lib/services/code-samples/httpsnippet/targets/r/index.d.ts +1 -1
- package/lib/services/code-samples/httpsnippet/targets/r/index.js +1 -2
- package/lib/services/code-samples/httpsnippet/targets/r/utils.d.ts +3 -3
- package/lib/services/code-samples/httpsnippet/targets/r/utils.js +6 -2
- package/lib/services/code-samples/httpsnippet/targets/ruby/index.d.ts +1 -1
- package/lib/services/code-samples/httpsnippet/targets/ruby/index.js +1 -2
- package/lib/services/code-samples/httpsnippet/targets/ruby/native.d.ts +2 -2
- package/lib/services/code-samples/httpsnippet/targets/ruby/native.js +1 -2
- package/lib/services/code-samples/httpsnippet/targets/shell/curl.d.ts +2 -2
- package/lib/services/code-samples/httpsnippet/targets/shell/curl.js +6 -2
- package/lib/services/code-samples/httpsnippet/targets/shell/index.d.ts +1 -1
- package/lib/services/code-samples/httpsnippet/targets/shell/index.js +1 -2
- package/lib/services/code-samples/index.d.ts +2 -2
- package/lib/services/code-samples/index.js +1 -2
- package/lib/services/code-samples/types.js +0 -2
- package/lib/services/config-options/helpers.js +1 -2
- package/lib/services/config-options/index.d.ts +2 -2
- package/lib/services/config-options/index.js +1 -2
- package/lib/services/config-options/normalizeOptions.d.ts +1 -1
- package/lib/services/config-options/normalizeOptions.js +1 -2
- package/lib/services/config-options/types.d.ts +5 -5
- package/lib/services/config-options/types.js +0 -2
- package/lib/services/history/helpers.d.ts +1 -1
- package/lib/services/history/helpers.js +1 -2
- package/lib/services/history/index.d.ts +1 -1
- package/lib/services/history/index.js +1 -2
- package/lib/services/index.d.ts +8 -8
- package/lib/services/index.js +1 -2
- package/lib/services/menu/builder.d.ts +3 -3
- package/lib/services/menu/builder.js +1 -2
- package/lib/services/menu/index.d.ts +1 -1
- package/lib/services/menu/index.js +1 -2
- package/lib/services/menu/markdown.d.ts +1 -1
- package/lib/services/menu/markdown.js +1 -2
- package/lib/services/menu/operation.d.ts +2 -2
- package/lib/services/menu/operation.js +1 -2
- package/lib/services/menu/tags.d.ts +5 -5
- package/lib/services/menu/tags.js +1 -2
- package/lib/services/types.d.ts +1 -4
- package/lib/services/types.js +0 -2
- package/lib/services/utils.js +1 -2
- package/lib/standalone.d.ts +4 -19
- package/lib/standalone.js +1 -2
- package/lib/styled-components.d.ts +1 -0
- package/lib/styled-components.js +1 -0
- package/lib/types/app.js +0 -2
- package/lib/types/index.d.ts +3 -3
- package/lib/types/index.js +1 -2
- package/lib/types/open-api.js +0 -2
- package/lib/types/security.js +0 -2
- package/lib/utils/JsonPointer.js +1 -2
- package/lib/utils/areArraysEqual.js +1 -2
- package/lib/utils/argValuesHelpers.js +1 -2
- package/lib/utils/compose.js +1 -2
- package/lib/utils/configure-helpers.d.ts +1 -1
- package/lib/utils/configure-helpers.js +1 -2
- package/lib/utils/convertSwagger2OpenAPI.d.ts +2 -0
- package/lib/utils/convertSwagger2OpenAPI.js +1 -0
- package/lib/utils/cookies.js +1 -2
- package/lib/utils/debounce.js +1 -2
- package/lib/utils/debug.js +1 -2
- package/lib/utils/dom.js +1 -2
- package/lib/utils/environments.d.ts +1 -1
- package/lib/utils/environments.js +1 -2
- package/lib/utils/helpers.js +12 -2
- package/lib/utils/index.d.ts +23 -23
- package/lib/utils/index.js +1 -2
- package/lib/utils/isMobile.js +1 -2
- package/lib/utils/loadAndBundleSpec.d.ts +2 -3
- package/lib/utils/loadAndBundleSpec.js +1 -2
- package/lib/utils/local-storage.js +1 -2
- package/lib/utils/object.js +1 -2
- package/lib/utils/openapi.d.ts +4 -4
- package/lib/utils/openapi.js +1 -2
- package/lib/utils/parameters.js +1 -2
- package/lib/utils/path.js +1 -2
- package/lib/utils/queryString.js +1 -2
- package/lib/utils/replaceVariables.d.ts +1 -1
- package/lib/utils/replaceVariables.js +1 -2
- package/lib/utils/saveTextBeforeHeading.js +1 -2
- package/lib/utils/security-details.d.ts +1 -1
- package/lib/utils/security-details.js +1 -2
- package/lib/utils/session-storage.js +1 -2
- package/lib/utils/simplifyAstStructure.js +1 -2
- package/lib/utils/sort.js +1 -2
- package/lib/utils/string.js +1 -2
- package/lib/utils/test-utils.js +1 -2
- package/lib/utils/theme-helpers.js +3 -4
- package/lib/utils/url.d.ts +2 -0
- package/lib/utils/url.js +1 -0
- package/package.json +26 -48
- package/bin.js +0 -4
- package/lib/utils/createParsedDocument.d.ts +0 -2
- package/lib/utils/createParsedDocument.js +0 -2
- package/lib-esm/components/ApiInfo/ApiInfo.d.ts +0 -7
- package/lib-esm/components/ApiInfo/ApiInfo.js +0 -2
- package/lib-esm/components/ApiInfo/Metadata.d.ts +0 -9
- package/lib-esm/components/ApiInfo/Metadata.js +0 -2
- package/lib-esm/components/ApiInfo/index.d.ts +0 -1
- package/lib-esm/components/ApiInfo/index.js +0 -2
- package/lib-esm/components/ApiInfo/styled.d.ts +0 -4
- package/lib-esm/components/ApiInfo/styled.js +0 -27
- package/lib-esm/components/CallbackSamples/CallbackSamples.d.ts +0 -7
- package/lib-esm/components/CallbackSamples/CallbackSamples.js +0 -16
- package/lib-esm/components/CallbackSamples/index.d.ts +0 -1
- package/lib-esm/components/CallbackSamples/index.js +0 -2
- package/lib-esm/components/Callbacks/CallbackDetails.d.ts +0 -7
- package/lib-esm/components/Callbacks/CallbackDetails.js +0 -20
- package/lib-esm/components/Callbacks/CallbackOperation.d.ts +0 -8
- package/lib-esm/components/Callbacks/CallbackOperation.js +0 -15
- package/lib-esm/components/Callbacks/CallbackSummary.d.ts +0 -8
- package/lib-esm/components/Callbacks/CallbackSummary.js +0 -19
- package/lib-esm/components/Callbacks/CallbacksList.d.ts +0 -7
- package/lib-esm/components/Callbacks/CallbacksList.js +0 -2
- package/lib-esm/components/Callbacks/index.d.ts +0 -3
- package/lib-esm/components/Callbacks/index.js +0 -2
- package/lib-esm/components/Callbacks/styled.d.ts +0 -3
- package/lib-esm/components/Callbacks/styled.js +0 -8
- package/lib-esm/components/Content/Content.d.ts +0 -7
- package/lib-esm/components/Content/Content.js +0 -2
- package/lib-esm/components/Content/index.d.ts +0 -1
- package/lib-esm/components/Content/index.js +0 -2
- package/lib-esm/components/Content/useAutoScroll.d.ts +0 -3
- package/lib-esm/components/Content/useAutoScroll.js +0 -2
- package/lib-esm/components/ContentItem/ContentItem.d.ts +0 -11
- package/lib-esm/components/ContentItem/ContentItem.js +0 -2
- package/lib-esm/components/ContentItem/index.d.ts +0 -1
- package/lib-esm/components/ContentItem/index.js +0 -2
- package/lib-esm/components/ContentItem/useIsExpanded.d.ts +0 -5
- package/lib-esm/components/ContentItem/useIsExpanded.js +0 -2
- package/lib-esm/components/ContentItems/ContentItems.d.ts +0 -8
- package/lib-esm/components/ContentItems/ContentItems.js +0 -2
- package/lib-esm/components/ContentItems/Items.d.ts +0 -7
- package/lib-esm/components/ContentItems/Items.js +0 -2
- package/lib-esm/components/ContentItems/VirtualList.d.ts +0 -7
- package/lib-esm/components/ContentItems/VirtualList.js +0 -2
- package/lib-esm/components/ContentItems/helpers.d.ts +0 -10
- package/lib-esm/components/ContentItems/helpers.js +0 -2
- package/lib-esm/components/ContentItems/index.d.ts +0 -1
- package/lib-esm/components/ContentItems/index.js +0 -2
- package/lib-esm/components/ContentItems/useScrollOnRender.d.ts +0 -3
- package/lib-esm/components/ContentItems/useScrollOnRender.js +0 -2
- package/lib-esm/components/Discriminator/Discriminator.d.ts +0 -10
- package/lib-esm/components/Discriminator/Discriminator.js +0 -6
- package/lib-esm/components/Discriminator/index.d.ts +0 -1
- package/lib-esm/components/Discriminator/index.js +0 -2
- package/lib-esm/components/Download/DownloadSpecification.d.ts +0 -4
- package/lib-esm/components/Download/DownloadSpecification.js +0 -40
- package/lib-esm/components/Download/index.d.ts +0 -1
- package/lib-esm/components/Download/index.js +0 -2
- package/lib-esm/components/Download/types.d.ts +0 -15
- package/lib-esm/components/Download/types.js +0 -2
- package/lib-esm/components/Download/useDownloadInfo.d.ts +0 -2
- package/lib-esm/components/Download/useDownloadInfo.js +0 -2
- package/lib-esm/components/ErrorBoundary/ErrorBoundary.d.ts +0 -9
- package/lib-esm/components/ErrorBoundary/ErrorBoundary.js +0 -5
- package/lib-esm/components/ErrorBoundary/index.d.ts +0 -1
- package/lib-esm/components/ErrorBoundary/index.js +0 -2
- package/lib-esm/components/ExpandAllButton/ExpandAllButton.d.ts +0 -8
- package/lib-esm/components/ExpandAllButton/ExpandAllButton.js +0 -4
- package/lib-esm/components/ExpandAllButton/index.d.ts +0 -1
- package/lib-esm/components/ExpandAllButton/index.js +0 -2
- package/lib-esm/components/ExternalDocumentation/ExternalDocumentation.d.ts +0 -7
- package/lib-esm/components/ExternalDocumentation/ExternalDocumentation.js +0 -5
- package/lib-esm/components/ExternalDocumentation/index.d.ts +0 -1
- package/lib-esm/components/ExternalDocumentation/index.js +0 -2
- package/lib-esm/components/Language/LanguageDropdown.d.ts +0 -15
- package/lib-esm/components/Language/LanguageDropdown.js +0 -2
- package/lib-esm/components/Language/LanguageItem.d.ts +0 -11
- package/lib-esm/components/Language/LanguageItem.js +0 -2
- package/lib-esm/components/Language/LanguageList.d.ts +0 -10
- package/lib-esm/components/Language/LanguageList.js +0 -2
- package/lib-esm/components/Language/_tests_/LanguageDropdown.test.d.ts +0 -1
- package/lib-esm/components/Language/_tests_/LanguageDropdown.test.js +0 -2
- package/lib-esm/components/Language/constants.d.ts +0 -2
- package/lib-esm/components/Language/constants.js +0 -2
- package/lib-esm/components/Language/index.d.ts +0 -3
- package/lib-esm/components/Language/index.js +0 -2
- package/lib-esm/components/Language/styled.d.ts +0 -31
- package/lib-esm/components/Language/styled.js +0 -82
- package/lib-esm/components/Markdown/Markdown.d.ts +0 -3
- package/lib-esm/components/Markdown/Markdown.js +0 -2
- package/lib-esm/components/Markdown/index.d.ts +0 -2
- package/lib-esm/components/Markdown/index.js +0 -2
- package/lib-esm/components/Markdown/types.d.ts +0 -10
- package/lib-esm/components/Markdown/types.js +0 -2
- package/lib-esm/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +0 -11
- package/lib-esm/components/MediaTypeSwitch/MediaTypesSwitch.js +0 -2
- package/lib-esm/components/MediaTypeSwitch/index.d.ts +0 -1
- package/lib-esm/components/MediaTypeSwitch/index.js +0 -2
- package/lib-esm/components/OperationItem/Description.d.ts +0 -10
- package/lib-esm/components/OperationItem/Description.js +0 -2
- package/lib-esm/components/OperationItem/OperationItem.d.ts +0 -5
- package/lib-esm/components/OperationItem/OperationItem.js +0 -22
- package/lib-esm/components/OperationItem/_tests_/OperationItem.test.d.ts +0 -1
- package/lib-esm/components/OperationItem/_tests_/OperationItem.test.js +0 -2
- package/lib-esm/components/OperationItem/_tests_/__mocks__/mock-intersection-observer.d.ts +0 -15
- package/lib-esm/components/OperationItem/_tests_/__mocks__/mock-intersection-observer.js +0 -2
- package/lib-esm/components/OperationItem/index.d.ts +0 -2
- package/lib-esm/components/OperationItem/index.js +0 -2
- package/lib-esm/components/OperationItem/types.d.ts +0 -4
- package/lib-esm/components/OperationItem/types.js +0 -2
- package/lib-esm/components/Overlay.d.ts +0 -6
- package/lib-esm/components/Overlay.js +0 -43
- package/lib-esm/components/Overview/Overview.d.ts +0 -9
- package/lib-esm/components/Overview/Overview.js +0 -2
- package/lib-esm/components/Overview/index.d.ts +0 -1
- package/lib-esm/components/Overview/index.js +0 -2
- package/lib-esm/components/PageFooter/PageFooter.d.ts +0 -2
- package/lib-esm/components/PageFooter/PageFooter.js +0 -2
- package/lib-esm/components/PageFooter/index.d.ts +0 -1
- package/lib-esm/components/PageFooter/index.js +0 -2
- package/lib-esm/components/Panel/ResponsePanel.d.ts +0 -3
- package/lib-esm/components/Panel/ResponsePanel.js +0 -25
- package/lib-esm/components/Panel/Trigger.d.ts +0 -1
- package/lib-esm/components/Panel/Trigger.js +0 -8
- package/lib-esm/components/Panel/index.d.ts +0 -2
- package/lib-esm/components/Panel/index.js +0 -2
- package/lib-esm/components/PanelItem/PanelItem.d.ts +0 -9
- package/lib-esm/components/PanelItem/PanelItem.js +0 -2
- package/lib-esm/components/PanelItem/index.d.ts +0 -2
- package/lib-esm/components/PanelItem/index.js +0 -2
- package/lib-esm/components/PanelItem/styled.d.ts +0 -16
- package/lib-esm/components/PanelItem/styled.js +0 -53
- package/lib-esm/components/PayloadSamples/Example.d.ts +0 -3
- package/lib-esm/components/PayloadSamples/Example.js +0 -2
- package/lib-esm/components/PayloadSamples/ExampleValue.d.ts +0 -2
- package/lib-esm/components/PayloadSamples/ExampleValue.js +0 -2
- package/lib-esm/components/PayloadSamples/MediaTypeSamples.d.ts +0 -2
- package/lib-esm/components/PayloadSamples/MediaTypeSamples.js +0 -4
- package/lib-esm/components/PayloadSamples/PayloadSamples.d.ts +0 -2
- package/lib-esm/components/PayloadSamples/PayloadSamples.js +0 -2
- package/lib-esm/components/PayloadSamples/index.d.ts +0 -5
- package/lib-esm/components/PayloadSamples/index.js +0 -2
- package/lib-esm/components/PayloadSamples/styled.d.ts +0 -4
- package/lib-esm/components/PayloadSamples/styled.js +0 -22
- package/lib-esm/components/PayloadSamples/types.d.ts +0 -25
- package/lib-esm/components/PayloadSamples/types.js +0 -2
- package/lib-esm/components/PropertyDetails/DescriptionEnums.d.ts +0 -4
- package/lib-esm/components/PropertyDetails/DescriptionEnums.js +0 -10
- package/lib-esm/components/PropertyDetails/EnumValues.d.ts +0 -2
- package/lib-esm/components/PropertyDetails/EnumValues.js +0 -2
- package/lib-esm/components/PropertyDetails/Examples.d.ts +0 -5
- package/lib-esm/components/PropertyDetails/Examples.js +0 -2
- package/lib-esm/components/PropertyDetails/Extensions.d.ts +0 -2
- package/lib-esm/components/PropertyDetails/Extensions.js +0 -4
- package/lib-esm/components/PropertyDetails/FieldDetail.d.ts +0 -7
- package/lib-esm/components/PropertyDetails/FieldDetail.js +0 -8
- package/lib-esm/components/PropertyDetails/FieldDetails.d.ts +0 -2
- package/lib-esm/components/PropertyDetails/FieldDetails.js +0 -40
- package/lib-esm/components/PropertyDetails/Pattern.d.ts +0 -6
- package/lib-esm/components/PropertyDetails/Pattern.js +0 -2
- package/lib-esm/components/PropertyDetails/PlusCircleIcon.d.ts +0 -7
- package/lib-esm/components/PropertyDetails/PlusCircleIcon.js +0 -11
- package/lib-esm/components/PropertyDetails/PropertyDetails.d.ts +0 -2
- package/lib-esm/components/PropertyDetails/PropertyDetails.js +0 -18
- package/lib-esm/components/PropertyDetails/SchemaTypeInfo.d.ts +0 -6
- package/lib-esm/components/PropertyDetails/SchemaTypeInfo.js +0 -16
- package/lib-esm/components/PropertyDetails/SimpleEnums.d.ts +0 -4
- package/lib-esm/components/PropertyDetails/SimpleEnums.js +0 -8
- package/lib-esm/components/PropertyDetails/cycleColorsByLevel.d.ts +0 -1
- package/lib-esm/components/PropertyDetails/cycleColorsByLevel.js +0 -2
- package/lib-esm/components/PropertyDetails/index.d.ts +0 -3
- package/lib-esm/components/PropertyDetails/index.js +0 -2
- package/lib-esm/components/PropertyDetails/styled.d.ts +0 -6
- package/lib-esm/components/PropertyDetails/styled.js +0 -23
- package/lib-esm/components/PropertyDetails/types.d.ts +0 -47
- package/lib-esm/components/PropertyDetails/types.js +0 -2
- package/lib-esm/components/RedoclyOpenAPIDocs/Providers.d.ts +0 -4
- package/lib-esm/components/RedoclyOpenAPIDocs/Providers.js +0 -2
- package/lib-esm/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.d.ts +0 -4
- package/lib-esm/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.js +0 -2
- package/lib-esm/components/RedoclyOpenAPIDocs/index.d.ts +0 -4
- package/lib-esm/components/RedoclyOpenAPIDocs/index.js +0 -2
- package/lib-esm/components/RedoclyOpenAPIDocs/styled.d.ts +0 -1
- package/lib-esm/components/RedoclyOpenAPIDocs/styled.js +0 -22
- package/lib-esm/components/RedoclyOpenAPIDocs/types.d.ts +0 -47
- package/lib-esm/components/RedoclyOpenAPIDocs/types.js +0 -2
- package/lib-esm/components/RedoclyOpenAPIDocs/utils.d.ts +0 -8
- package/lib-esm/components/RedoclyOpenAPIDocs/utils.js +0 -2
- package/lib-esm/components/RenderHook/RenderHook.d.ts +0 -8
- package/lib-esm/components/RenderHook/RenderHook.js +0 -2
- package/lib-esm/components/RenderHook/index.d.ts +0 -1
- package/lib-esm/components/RenderHook/index.js +0 -2
- package/lib-esm/components/Replay/EmbeddedReplay.d.ts +0 -9
- package/lib-esm/components/Replay/EmbeddedReplay.js +0 -11
- package/lib-esm/components/Replay/Replay.d.ts +0 -9
- package/lib-esm/components/Replay/Replay.js +0 -2
- package/lib-esm/components/Replay/index.d.ts +0 -2
- package/lib-esm/components/Replay/index.js +0 -2
- package/lib-esm/components/Replay/utils.d.ts +0 -42
- package/lib-esm/components/Replay/utils.js +0 -2
- package/lib-esm/components/Request/RequestDetails.d.ts +0 -2
- package/lib-esm/components/Request/RequestDetails.js +0 -4
- package/lib-esm/components/Request/types.d.ts +0 -10
- package/lib-esm/components/Request/types.js +0 -2
- package/lib-esm/components/RequestParameters/Body.d.ts +0 -9
- package/lib-esm/components/RequestParameters/Body.js +0 -2
- package/lib-esm/components/RequestParameters/ParametersGroup.d.ts +0 -8
- package/lib-esm/components/RequestParameters/ParametersGroup.js +0 -21
- package/lib-esm/components/RequestParameters/RequestParameters.d.ts +0 -9
- package/lib-esm/components/RequestParameters/RequestParameters.js +0 -2
- package/lib-esm/components/RequestParameters/index.d.ts +0 -2
- package/lib-esm/components/RequestParameters/index.js +0 -2
- package/lib-esm/components/RequestSamples/CodeSample.d.ts +0 -16
- package/lib-esm/components/RequestSamples/CodeSample.js +0 -10
- package/lib-esm/components/RequestSamples/Example.d.ts +0 -9
- package/lib-esm/components/RequestSamples/Example.js +0 -2
- package/lib-esm/components/RequestSamples/RequestSamples.d.ts +0 -10
- package/lib-esm/components/RequestSamples/RequestSamples.js +0 -13
- package/lib-esm/components/RequestSamples/index.d.ts +0 -2
- package/lib-esm/components/RequestSamples/index.js +0 -2
- package/lib-esm/components/RequestSamples/useCodeSamples.d.ts +0 -10
- package/lib-esm/components/RequestSamples/useCodeSamples.js +0 -2
- package/lib-esm/components/ResponseSamples/ResponseSamples.d.ts +0 -12
- package/lib-esm/components/ResponseSamples/ResponseSamples.js +0 -2
- package/lib-esm/components/ResponseSamples/Summary.d.ts +0 -5
- package/lib-esm/components/ResponseSamples/Summary.js +0 -2
- package/lib-esm/components/ResponseSamples/index.d.ts +0 -1
- package/lib-esm/components/ResponseSamples/index.js +0 -2
- package/lib-esm/components/Responses/OperationResponseList.d.ts +0 -16
- package/lib-esm/components/Responses/OperationResponseList.js +0 -5
- package/lib-esm/components/Responses/ResponseDetails.d.ts +0 -2
- package/lib-esm/components/Responses/ResponseDetails.js +0 -2
- package/lib-esm/components/Responses/ResponseHeaders.d.ts +0 -2
- package/lib-esm/components/Responses/ResponseHeaders.js +0 -2
- package/lib-esm/components/Responses/index.d.ts +0 -3
- package/lib-esm/components/Responses/index.js +0 -2
- package/lib-esm/components/Responses/styled.d.ts +0 -5
- package/lib-esm/components/Responses/styled.js +0 -23
- package/lib-esm/components/Responses/types.d.ts +0 -13
- package/lib-esm/components/Responses/types.js +0 -2
- package/lib-esm/components/RightPanel/RightPanel.d.ts +0 -5
- package/lib-esm/components/RightPanel/RightPanel.js +0 -2
- package/lib-esm/components/RightPanel/index.d.ts +0 -1
- package/lib-esm/components/RightPanel/index.js +0 -2
- package/lib-esm/components/Samples/ExampleSwitch.d.ts +0 -14
- package/lib-esm/components/Samples/ExampleSwitch.js +0 -2
- package/lib-esm/components/Samples/index.d.ts +0 -2
- package/lib-esm/components/Samples/index.js +0 -2
- package/lib-esm/components/Samples/use-example-key.d.ts +0 -6
- package/lib-esm/components/Samples/use-example-key.js +0 -2
- package/lib-esm/components/Schema/ArraySchema.d.ts +0 -2
- package/lib-esm/components/Schema/ArraySchema.js +0 -2
- package/lib-esm/components/Schema/ObjectSchema.d.ts +0 -2
- package/lib-esm/components/Schema/ObjectSchema.js +0 -2
- package/lib-esm/components/Schema/OneOfSchema.d.ts +0 -2
- package/lib-esm/components/Schema/OneOfSchema.js +0 -11
- package/lib-esm/components/Schema/RecursiveSchema.d.ts +0 -2
- package/lib-esm/components/Schema/RecursiveSchema.js +0 -2
- package/lib-esm/components/Schema/Schema.d.ts +0 -2
- package/lib-esm/components/Schema/Schema.js +0 -6
- package/lib-esm/components/Schema/SubSchema.d.ts +0 -14
- package/lib-esm/components/Schema/SubSchema.js +0 -2
- package/lib-esm/components/Schema/helpers.d.ts +0 -5
- package/lib-esm/components/Schema/helpers.js +0 -2
- package/lib-esm/components/Schema/index.d.ts +0 -5
- package/lib-esm/components/Schema/index.js +0 -2
- package/lib-esm/components/Schema/types.d.ts +0 -38
- package/lib-esm/components/Schema/types.js +0 -2
- package/lib-esm/components/Schema/useOneOfLocationIdx.d.ts +0 -2
- package/lib-esm/components/Schema/useOneOfLocationIdx.js +0 -2
- package/lib-esm/components/SchemaDefinition/SchemaDefinition.d.ts +0 -8
- package/lib-esm/components/SchemaDefinition/SchemaDefinition.js +0 -4
- package/lib-esm/components/SchemaDefinition/index.d.ts +0 -1
- package/lib-esm/components/SchemaDefinition/index.js +0 -2
- package/lib-esm/components/SectionContent/SectionContent.d.ts +0 -17
- package/lib-esm/components/SectionContent/SectionContent.js +0 -14
- package/lib-esm/components/SectionContent/index.d.ts +0 -1
- package/lib-esm/components/SectionContent/index.js +0 -2
- package/lib-esm/components/SectionItem/SectionItem.d.ts +0 -7
- package/lib-esm/components/SectionItem/SectionItem.js +0 -2
- package/lib-esm/components/SectionItem/index.d.ts +0 -1
- package/lib-esm/components/SectionItem/index.js +0 -2
- package/lib-esm/components/Security/Divider.d.ts +0 -3
- package/lib-esm/components/Security/Divider.js +0 -15
- package/lib-esm/components/Security/OAuthFlow.d.ts +0 -6
- package/lib-esm/components/Security/OAuthFlow.js +0 -2
- package/lib-esm/components/Security/OAuthScopes.d.ts +0 -13
- package/lib-esm/components/Security/OAuthScopes.js +0 -34
- package/lib-esm/components/Security/Security.d.ts +0 -7
- package/lib-esm/components/Security/Security.js +0 -2
- package/lib-esm/components/Security/SecurityButton.d.ts +0 -10
- package/lib-esm/components/Security/SecurityButton.js +0 -31
- package/lib-esm/components/Security/SecurityFlow.d.ts +0 -5
- package/lib-esm/components/Security/SecurityFlow.js +0 -17
- package/lib-esm/components/Security/SecurityModal.d.ts +0 -8
- package/lib-esm/components/Security/SecurityModal.js +0 -45
- package/lib-esm/components/Security/SecuritySchemeItem.d.ts +0 -7
- package/lib-esm/components/Security/SecuritySchemeItem.js +0 -21
- package/lib-esm/components/Security/helper.d.ts +0 -2
- package/lib-esm/components/Security/helper.js +0 -2
- package/lib-esm/components/Security/index.d.ts +0 -1
- package/lib-esm/components/Security/index.js +0 -2
- package/lib-esm/components/Security/styled.d.ts +0 -2
- package/lib-esm/components/Security/styled.js +0 -14
- package/lib-esm/components/SelectOrLabel/SelectOrLabel.d.ts +0 -7
- package/lib-esm/components/SelectOrLabel/SelectOrLabel.js +0 -8
- package/lib-esm/components/SelectOrLabel/index.d.ts +0 -1
- package/lib-esm/components/SelectOrLabel/index.js +0 -2
- package/lib-esm/components/ServerList/ServerList.d.ts +0 -3
- package/lib-esm/components/ServerList/ServerList.js +0 -60
- package/lib-esm/components/ServerList/index.d.ts +0 -1
- package/lib-esm/components/ServerList/index.js +0 -2
- package/lib-esm/components/ServerList/types.d.ts +0 -5
- package/lib-esm/components/ServerList/types.js +0 -2
- package/lib-esm/components/ServerListDropdown/ServerListDropdown.d.ts +0 -7
- package/lib-esm/components/ServerListDropdown/ServerListDropdown.js +0 -2
- package/lib-esm/components/ServerListDropdown/index.d.ts +0 -1
- package/lib-esm/components/ServerListDropdown/index.js +0 -2
- package/lib-esm/components/ServerListDropdown/styled.d.ts +0 -5
- package/lib-esm/components/ServerListDropdown/styled.js +0 -23
- package/lib-esm/components/SideMenu/SideMenu.d.ts +0 -8
- package/lib-esm/components/SideMenu/SideMenu.js +0 -4
- package/lib-esm/components/SideMenu/hooks/useMenuItems.d.ts +0 -7
- package/lib-esm/components/SideMenu/hooks/useMenuItems.js +0 -2
- package/lib-esm/components/SideMenu/index.d.ts +0 -1
- package/lib-esm/components/SideMenu/index.js +0 -2
- package/lib-esm/components/SideMenu/types.d.ts +0 -16
- package/lib-esm/components/SideMenu/types.js +0 -2
- package/lib-esm/components/StickySidebar/SidebarActions.d.ts +0 -1
- package/lib-esm/components/StickySidebar/SidebarActions.js +0 -6
- package/lib-esm/components/StickySidebar/StickyResponsiveSidebar.d.ts +0 -9
- package/lib-esm/components/StickySidebar/StickyResponsiveSidebar.js +0 -25
- package/lib-esm/components/StickySidebar/index.d.ts +0 -1
- package/lib-esm/components/StickySidebar/index.js +0 -2
- package/lib-esm/components/Tabs/Tabs.d.ts +0 -8
- package/lib-esm/components/Tabs/Tabs.js +0 -35
- package/lib-esm/components/Tabs/index.d.ts +0 -2
- package/lib-esm/components/Tabs/index.js +0 -2
- package/lib-esm/components/Tabs/useTabsState.d.ts +0 -11
- package/lib-esm/components/Tabs/useTabsState.js +0 -2
- package/lib-esm/components/TagItem/OperationNavigationItems.d.ts +0 -9
- package/lib-esm/components/TagItem/OperationNavigationItems.js +0 -37
- package/lib-esm/components/TagItem/OperationsNavigation.d.ts +0 -3
- package/lib-esm/components/TagItem/OperationsNavigation.js +0 -7
- package/lib-esm/components/TagItem/TagItem.d.ts +0 -9
- package/lib-esm/components/TagItem/TagItem.js +0 -24
- package/lib-esm/components/TagItem/index.d.ts +0 -1
- package/lib-esm/components/TagItem/index.js +0 -2
- package/lib-esm/components/TagItem/styled.d.ts +0 -1
- package/lib-esm/components/TagItem/styled.js +0 -6
- package/lib-esm/components/TagItem/types.d.ts +0 -5
- package/lib-esm/components/TagItem/types.js +0 -2
- package/lib-esm/components/ViewNested/ViewNested.d.ts +0 -13
- package/lib-esm/components/ViewNested/ViewNested.js +0 -35
- package/lib-esm/components/ViewNested/index.d.ts +0 -1
- package/lib-esm/components/ViewNested/index.js +0 -2
- package/lib-esm/components/common/Badges.d.ts +0 -13
- package/lib-esm/components/common/Badges.js +0 -19
- package/lib-esm/components/common/BodyContent/BodyContent.d.ts +0 -11
- package/lib-esm/components/common/BodyContent/BodyContent.js +0 -28
- package/lib-esm/components/common/BodyContent/index.d.ts +0 -1
- package/lib-esm/components/common/BodyContent/index.js +0 -2
- package/lib-esm/components/common/ClearButton/ClearButton.d.ts +0 -2
- package/lib-esm/components/common/ClearButton/ClearButton.js +0 -2
- package/lib-esm/components/common/ClearButton/index.d.ts +0 -2
- package/lib-esm/components/common/ClearButton/index.js +0 -2
- package/lib-esm/components/common/ClearButton/styled.d.ts +0 -1
- package/lib-esm/components/common/ClearButton/styled.js +0 -16
- package/lib-esm/components/common/ClearButton/types.d.ts +0 -6
- package/lib-esm/components/common/ClearButton/types.js +0 -2
- package/lib-esm/components/common/CodeBlockPanel.d.ts +0 -2
- package/lib-esm/components/common/CodeBlockPanel.js +0 -6
- package/lib-esm/components/common/ConstraintsView.d.ts +0 -4
- package/lib-esm/components/common/ConstraintsView.js +0 -4
- package/lib-esm/components/common/Dropdown/Dropdown.d.ts +0 -12
- package/lib-esm/components/common/Dropdown/Dropdown.js +0 -27
- package/lib-esm/components/common/Dropdown/index.d.ts +0 -2
- package/lib-esm/components/common/Dropdown/index.js +0 -2
- package/lib-esm/components/common/ExpandableExample/ExpandableExample.d.ts +0 -5
- package/lib-esm/components/common/ExpandableExample/ExpandableExample.js +0 -10
- package/lib-esm/components/common/ExpandableExample/index.d.ts +0 -1
- package/lib-esm/components/common/ExpandableExample/index.js +0 -2
- package/lib-esm/components/common/Extensions.d.ts +0 -6
- package/lib-esm/components/common/Extensions.js +0 -4
- package/lib-esm/components/common/Fields/fields-layout.d.ts +0 -15
- package/lib-esm/components/common/Fields/fields-layout.js +0 -223
- package/lib-esm/components/common/Fields/fields.d.ts +0 -38
- package/lib-esm/components/common/Fields/fields.js +0 -93
- package/lib-esm/components/common/Fields/index.d.ts +0 -2
- package/lib-esm/components/common/Fields/index.js +0 -2
- package/lib-esm/components/common/LinkToField.d.ts +0 -13
- package/lib-esm/components/common/LinkToField.js +0 -20
- package/lib-esm/components/common/OperationItemTitle.d.ts +0 -2
- package/lib-esm/components/common/OperationItemTitle.js +0 -33
- package/lib-esm/components/common/SchemaSelection/SchemaSelection.d.ts +0 -12
- package/lib-esm/components/common/SchemaSelection/SchemaSelection.js +0 -2
- package/lib-esm/components/common/SchemaSelection/index.d.ts +0 -1
- package/lib-esm/components/common/SchemaSelection/index.js +0 -2
- package/lib-esm/components/common/Select/Select.d.ts +0 -2
- package/lib-esm/components/common/Select/Select.js +0 -2
- package/lib-esm/components/common/Select/index.d.ts +0 -2
- package/lib-esm/components/common/Select/index.js +0 -2
- package/lib-esm/components/common/Select/styled.d.ts +0 -22
- package/lib-esm/components/common/Select/styled.js +0 -111
- package/lib-esm/components/common/Select/types.d.ts +0 -20
- package/lib-esm/components/common/Select/types.js +0 -2
- package/lib-esm/components/common/Skeleton/LanguageListSkeleton.d.ts +0 -4
- package/lib-esm/components/common/Skeleton/LanguageListSkeleton.js +0 -23
- package/lib-esm/components/common/Skeleton/Skeleton.d.ts +0 -5
- package/lib-esm/components/common/Skeleton/Skeleton.js +0 -33
- package/lib-esm/components/common/Skeleton/index.d.ts +0 -1
- package/lib-esm/components/common/Skeleton/index.js +0 -2
- package/lib-esm/components/common/headers.d.ts +0 -1
- package/lib-esm/components/common/headers.js +0 -8
- package/lib-esm/components/common/index.d.ts +0 -14
- package/lib-esm/components/common/index.js +0 -2
- package/lib-esm/components/common/linkify.d.ts +0 -10
- package/lib-esm/components/common/linkify.js +0 -21
- package/lib-esm/components/common/mixins.d.ts +0 -1
- package/lib-esm/components/common/mixins.js +0 -5
- package/lib-esm/components/common/panels.d.ts +0 -17
- package/lib-esm/components/common/panels.js +0 -123
- package/lib-esm/components/common/schema.d.ts +0 -7
- package/lib-esm/components/common/schema.js +0 -74
- package/lib-esm/components/common/styled.d.ts +0 -7
- package/lib-esm/components/common/styled.js +0 -59
- package/lib-esm/components/index.d.ts +0 -23
- package/lib-esm/components/index.js +0 -2
- package/lib-esm/components/pluggable/RedocExample.d.ts +0 -11
- package/lib-esm/components/pluggable/RedocExample.js +0 -2
- package/lib-esm/components/pluggable/RedocSchema.d.ts +0 -10
- package/lib-esm/components/pluggable/RedocSchema.js +0 -2
- package/lib-esm/components/pluggable/index.d.ts +0 -2
- package/lib-esm/components/pluggable/index.js +0 -2
- package/lib-esm/components/pluggable/styled.components.d.ts +0 -7
- package/lib-esm/components/pluggable/styled.components.js +0 -13
- package/lib-esm/constants.d.ts +0 -25
- package/lib-esm/constants.js +0 -2
- package/lib-esm/empty.d.ts +0 -2
- package/lib-esm/empty.js +0 -2
- package/lib-esm/events/codeSampleCopy.d.ts +0 -2
- package/lib-esm/events/codeSampleCopy.js +0 -2
- package/lib-esm/events/creator.d.ts +0 -2
- package/lib-esm/events/creator.js +0 -2
- package/lib-esm/events/index.d.ts +0 -8
- package/lib-esm/events/index.js +0 -2
- package/lib-esm/events/languageSwitch.d.ts +0 -2
- package/lib-esm/events/languageSwitch.js +0 -2
- package/lib-esm/events/panelToggle.d.ts +0 -2
- package/lib-esm/events/panelToggle.js +0 -2
- package/lib-esm/events/serverSwitch.d.ts +0 -2
- package/lib-esm/events/serverSwitch.js +0 -2
- package/lib-esm/events/tryItOpen.d.ts +0 -2
- package/lib-esm/events/tryItOpen.js +0 -2
- package/lib-esm/events/tryItSent.d.ts +0 -2
- package/lib-esm/events/tryItSent.js +0 -2
- package/lib-esm/events/types.d.ts +0 -83
- package/lib-esm/events/types.js +0 -2
- package/lib-esm/hoc/types.d.ts +0 -51
- package/lib-esm/hoc/types.js +0 -2
- package/lib-esm/hoc/utils.d.ts +0 -2
- package/lib-esm/hoc/utils.js +0 -2
- package/lib-esm/hoc/withRouter.d.ts +0 -3
- package/lib-esm/hoc/withRouter.js +0 -2
- package/lib-esm/hoc/withStore.d.ts +0 -3
- package/lib-esm/hoc/withStore.js +0 -2
- package/lib-esm/hooks/index.d.ts +0 -8
- package/lib-esm/hooks/index.js +0 -2
- package/lib-esm/hooks/useActivateExample.d.ts +0 -2
- package/lib-esm/hooks/useActivateExample.js +0 -2
- package/lib-esm/hooks/useActiveWithFallback.d.ts +0 -3
- package/lib-esm/hooks/useActiveWithFallback.js +0 -2
- package/lib-esm/hooks/useContentItems.d.ts +0 -12
- package/lib-esm/hooks/useContentItems.js +0 -2
- package/lib-esm/hooks/useLicense.d.ts +0 -5
- package/lib-esm/hooks/useLicense.js +0 -2
- package/lib-esm/hooks/usePerformanceMetrics.d.ts +0 -5
- package/lib-esm/hooks/usePerformanceMetrics.js +0 -2
- package/lib-esm/hooks/useRouter.d.ts +0 -13
- package/lib-esm/hooks/useRouter.js +0 -2
- package/lib-esm/hooks/useTelemetry.d.ts +0 -2
- package/lib-esm/hooks/useTelemetry.js +0 -2
- package/lib-esm/hooks/useTranslate.d.ts +0 -2
- package/lib-esm/hooks/useTranslate.js +0 -2
- package/lib-esm/hooks/useUppercase2LowercaseRedirect.d.ts +0 -1
- package/lib-esm/hooks/useUppercase2LowercaseRedirect.js +0 -2
- package/lib-esm/icons/CSharpIcon/CSharpIcon.d.ts +0 -4
- package/lib-esm/icons/CSharpIcon/CSharpIcon.js +0 -2
- package/lib-esm/icons/CSharpIcon/index.d.ts +0 -1
- package/lib-esm/icons/CSharpIcon/index.js +0 -2
- package/lib-esm/icons/CurlIcon/CurlIcon.d.ts +0 -6
- package/lib-esm/icons/CurlIcon/CurlIcon.js +0 -15
- package/lib-esm/icons/CurlIcon/index.d.ts +0 -1
- package/lib-esm/icons/CurlIcon/index.js +0 -2
- package/lib-esm/icons/GOIcon/GOIcon.d.ts +0 -4
- package/lib-esm/icons/GOIcon/GOIcon.js +0 -2
- package/lib-esm/icons/GOIcon/index.d.ts +0 -1
- package/lib-esm/icons/GOIcon/index.js +0 -2
- package/lib-esm/icons/JavaIcon/JavaIcon.d.ts +0 -4
- package/lib-esm/icons/JavaIcon/JavaIcon.js +0 -2
- package/lib-esm/icons/JavaIcon/index.d.ts +0 -1
- package/lib-esm/icons/JavaIcon/index.js +0 -2
- package/lib-esm/icons/JavaScriptIcon/JavaScriptIcon.d.ts +0 -4
- package/lib-esm/icons/JavaScriptIcon/JavaScriptIcon.js +0 -2
- package/lib-esm/icons/JavaScriptIcon/index.d.ts +0 -1
- package/lib-esm/icons/JavaScriptIcon/index.js +0 -2
- package/lib-esm/icons/NodeJSIcon/NodeJSIcon.d.ts +0 -4
- package/lib-esm/icons/NodeJSIcon/NodeJSIcon.js +0 -2
- package/lib-esm/icons/NodeJSIcon/index.d.ts +0 -1
- package/lib-esm/icons/NodeJSIcon/index.js +0 -2
- package/lib-esm/icons/PHPIcon/PHPIcon.d.ts +0 -4
- package/lib-esm/icons/PHPIcon/PHPIcon.js +0 -2
- package/lib-esm/icons/PHPIcon/index.d.ts +0 -1
- package/lib-esm/icons/PHPIcon/index.js +0 -2
- package/lib-esm/icons/PayloadIcon/PayloadIcon.d.ts +0 -4
- package/lib-esm/icons/PayloadIcon/PayloadIcon.js +0 -2
- package/lib-esm/icons/PayloadIcon/index.d.ts +0 -1
- package/lib-esm/icons/PayloadIcon/index.js +0 -2
- package/lib-esm/icons/PythonIcon/PythonIcon.d.ts +0 -4
- package/lib-esm/icons/PythonIcon/PythonIcon.js +0 -2
- package/lib-esm/icons/PythonIcon/index.d.ts +0 -1
- package/lib-esm/icons/PythonIcon/index.js +0 -2
- package/lib-esm/icons/RIcon/RIcon.d.ts +0 -4
- package/lib-esm/icons/RIcon/RIcon.js +0 -2
- package/lib-esm/icons/RIcon/index.d.ts +0 -1
- package/lib-esm/icons/RIcon/index.js +0 -2
- package/lib-esm/icons/RubyIcon/RubyIcon.d.ts +0 -4
- package/lib-esm/icons/RubyIcon/RubyIcon.js +0 -2
- package/lib-esm/icons/RubyIcon/index.d.ts +0 -1
- package/lib-esm/icons/RubyIcon/index.js +0 -2
- package/lib-esm/index.d.ts +0 -44
- package/lib-esm/index.js +0 -2
- package/lib-esm/jotai/app.d.ts +0 -51
- package/lib-esm/jotai/app.js +0 -2
- package/lib-esm/jotai/operation.d.ts +0 -37
- package/lib-esm/jotai/operation.js +0 -2
- package/lib-esm/jotai/replay.d.ts +0 -7
- package/lib-esm/jotai/replay.js +0 -2
- package/lib-esm/jotai/store.d.ts +0 -16
- package/lib-esm/jotai/store.js +0 -2
- package/lib-esm/jotai/use-write-atom.d.ts +0 -1
- package/lib-esm/jotai/use-write-atom.js +0 -2
- package/lib-esm/models/callback.d.ts +0 -5
- package/lib-esm/models/callback.js +0 -2
- package/lib-esm/models/code-sample-options.d.ts +0 -8
- package/lib-esm/models/code-sample-options.js +0 -2
- package/lib-esm/models/example.d.ts +0 -9
- package/lib-esm/models/example.js +0 -2
- package/lib-esm/models/field.d.ts +0 -7
- package/lib-esm/models/field.js +0 -2
- package/lib-esm/models/group.d.ts +0 -4
- package/lib-esm/models/group.js +0 -2
- package/lib-esm/models/index.d.ts +0 -15
- package/lib-esm/models/index.js +0 -2
- package/lib-esm/models/mediaContent.d.ts +0 -7
- package/lib-esm/models/mediaContent.js +0 -2
- package/lib-esm/models/mediaType.d.ts +0 -19
- package/lib-esm/models/mediaType.js +0 -2
- package/lib-esm/models/operation.d.ts +0 -20
- package/lib-esm/models/operation.js +0 -2
- package/lib-esm/models/request.d.ts +0 -12
- package/lib-esm/models/request.js +0 -2
- package/lib-esm/models/response.d.ts +0 -14
- package/lib-esm/models/response.js +0 -2
- package/lib-esm/models/schema.d.ts +0 -13
- package/lib-esm/models/schema.js +0 -2
- package/lib-esm/models/security.d.ts +0 -8
- package/lib-esm/models/security.js +0 -2
- package/lib-esm/models/tab.d.ts +0 -4
- package/lib-esm/models/tab.js +0 -2
- package/lib-esm/models/types.d.ts +0 -265
- package/lib-esm/models/types.js +0 -2
- package/lib-esm/services/OpenAPIParser.d.ts +0 -52
- package/lib-esm/services/OpenAPIParser.js +0 -2
- package/lib-esm/services/check.d.ts +0 -13
- package/lib-esm/services/check.js +0 -2
- package/lib-esm/services/code-samples/constants.d.ts +0 -2
- package/lib-esm/services/code-samples/constants.js +0 -2
- package/lib-esm/services/code-samples/generator.d.ts +0 -29
- package/lib-esm/services/code-samples/generator.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/helpers/code-builder.d.ts +0 -83
- package/lib-esm/services/code-samples/httpsnippet/helpers/code-builder.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/helpers/code-helpers.d.ts +0 -28
- package/lib-esm/services/code-samples/httpsnippet/helpers/code-helpers.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/helpers/constants.d.ts +0 -24
- package/lib-esm/services/code-samples/httpsnippet/helpers/constants.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/helpers/lodash-int.d.ts +0 -5
- package/lib-esm/services/code-samples/httpsnippet/helpers/lodash-int.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.d.ts +0 -30
- package/lib-esm/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/helpers/reducer.d.ts +0 -1
- package/lib-esm/services/code-samples/httpsnippet/helpers/reducer.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/helpers/shell.d.ts +0 -10
- package/lib-esm/services/code-samples/httpsnippet/helpers/shell.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/helpers/string-utility.d.ts +0 -7
- package/lib-esm/services/code-samples/httpsnippet/helpers/string-utility.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/index.d.ts +0 -47
- package/lib-esm/services/code-samples/httpsnippet/index.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/__mocks__/mock.d.ts +0 -3565
- package/lib-esm/services/code-samples/httpsnippet/targets/__mocks__/mock.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/csharp/httpclient.d.ts +0 -10
- package/lib-esm/services/code-samples/httpsnippet/targets/csharp/httpclient.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/csharp/index.d.ts +0 -10
- package/lib-esm/services/code-samples/httpsnippet/targets/csharp/index.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/csharpNewtonsoft/httpclient.d.ts +0 -10
- package/lib-esm/services/code-samples/httpsnippet/targets/csharpNewtonsoft/httpclient.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/csharpNewtonsoft/index.d.ts +0 -10
- package/lib-esm/services/code-samples/httpsnippet/targets/csharpNewtonsoft/index.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/go/index.d.ts +0 -10
- package/lib-esm/services/code-samples/httpsnippet/targets/go/index.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/go/native.d.ts +0 -10
- package/lib-esm/services/code-samples/httpsnippet/targets/go/native.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/index.d.ts +0 -115
- package/lib-esm/services/code-samples/httpsnippet/targets/index.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/java/httpclient.d.ts +0 -10
- package/lib-esm/services/code-samples/httpsnippet/targets/java/httpclient.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/java/index.d.ts +0 -10
- package/lib-esm/services/code-samples/httpsnippet/targets/java/index.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/java8/apachehttp.d.ts +0 -10
- package/lib-esm/services/code-samples/httpsnippet/targets/java8/apachehttp.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/java8/index.d.ts +0 -10
- package/lib-esm/services/code-samples/httpsnippet/targets/java8/index.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/javascript/fetch.d.ts +0 -10
- package/lib-esm/services/code-samples/httpsnippet/targets/javascript/fetch.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/javascript/index.d.ts +0 -12
- package/lib-esm/services/code-samples/httpsnippet/targets/javascript/index.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/node/fetch.d.ts +0 -10
- package/lib-esm/services/code-samples/httpsnippet/targets/node/fetch.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/node/index.d.ts +0 -10
- package/lib-esm/services/code-samples/httpsnippet/targets/node/index.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/php/curl.d.ts +0 -10
- package/lib-esm/services/code-samples/httpsnippet/targets/php/curl.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/php/index.d.ts +0 -10
- package/lib-esm/services/code-samples/httpsnippet/targets/php/index.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/php/types.d.ts +0 -11
- package/lib-esm/services/code-samples/httpsnippet/targets/php/types.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/php/utils.d.ts +0 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/php/utils.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/python/index.d.ts +0 -10
- package/lib-esm/services/code-samples/httpsnippet/targets/python/index.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/python/requests.d.ts +0 -4
- package/lib-esm/services/code-samples/httpsnippet/targets/python/requests.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/r/httr.d.ts +0 -4
- package/lib-esm/services/code-samples/httpsnippet/targets/r/httr.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/r/index.d.ts +0 -10
- package/lib-esm/services/code-samples/httpsnippet/targets/r/index.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/r/utils.d.ts +0 -5
- package/lib-esm/services/code-samples/httpsnippet/targets/r/utils.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/ruby/index.d.ts +0 -10
- package/lib-esm/services/code-samples/httpsnippet/targets/ruby/index.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/ruby/native.d.ts +0 -10
- package/lib-esm/services/code-samples/httpsnippet/targets/ruby/native.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/shell/curl.d.ts +0 -10
- package/lib-esm/services/code-samples/httpsnippet/targets/shell/curl.js +0 -2
- package/lib-esm/services/code-samples/httpsnippet/targets/shell/index.d.ts +0 -12
- package/lib-esm/services/code-samples/httpsnippet/targets/shell/index.js +0 -2
- package/lib-esm/services/code-samples/index.d.ts +0 -2
- package/lib-esm/services/code-samples/index.js +0 -2
- package/lib-esm/services/code-samples/types.d.ts +0 -72
- package/lib-esm/services/code-samples/types.js +0 -2
- package/lib-esm/services/config-options/helpers.d.ts +0 -3
- package/lib-esm/services/config-options/helpers.js +0 -2
- package/lib-esm/services/config-options/index.d.ts +0 -2
- package/lib-esm/services/config-options/index.js +0 -2
- package/lib-esm/services/config-options/normalizeOptions.d.ts +0 -3
- package/lib-esm/services/config-options/normalizeOptions.js +0 -2
- package/lib-esm/services/config-options/types.d.ts +0 -55
- package/lib-esm/services/config-options/types.js +0 -2
- package/lib-esm/services/history/helpers.d.ts +0 -5
- package/lib-esm/services/history/helpers.js +0 -2
- package/lib-esm/services/history/index.d.ts +0 -1
- package/lib-esm/services/history/index.js +0 -2
- package/lib-esm/services/index.d.ts +0 -8
- package/lib-esm/services/index.js +0 -2
- package/lib-esm/services/menu/builder.d.ts +0 -8
- package/lib-esm/services/menu/builder.js +0 -2
- package/lib-esm/services/menu/index.d.ts +0 -1
- package/lib-esm/services/menu/index.js +0 -2
- package/lib-esm/services/menu/markdown.d.ts +0 -8
- package/lib-esm/services/menu/markdown.js +0 -2
- package/lib-esm/services/menu/operation.d.ts +0 -10
- package/lib-esm/services/menu/operation.js +0 -2
- package/lib-esm/services/menu/tags.d.ts +0 -27
- package/lib-esm/services/menu/tags.js +0 -2
- package/lib-esm/services/types.d.ts +0 -126
- package/lib-esm/services/types.js +0 -2
- package/lib-esm/services/utils.d.ts +0 -18
- package/lib-esm/services/utils.js +0 -2
- package/lib-esm/standalone.d.ts +0 -24
- package/lib-esm/standalone.js +0 -2
- package/lib-esm/types/app.d.ts +0 -6
- package/lib-esm/types/app.js +0 -2
- package/lib-esm/types/index.d.ts +0 -3
- package/lib-esm/types/index.js +0 -2
- package/lib-esm/types/open-api.d.ts +0 -368
- package/lib-esm/types/open-api.js +0 -2
- package/lib-esm/types/security.d.ts +0 -11
- package/lib-esm/types/security.js +0 -2
- package/lib-esm/utils/JsonPointer.d.ts +0 -51
- package/lib-esm/utils/JsonPointer.js +0 -2
- package/lib-esm/utils/areArraysEqual.d.ts +0 -1
- package/lib-esm/utils/areArraysEqual.js +0 -2
- package/lib-esm/utils/argValuesHelpers.d.ts +0 -4
- package/lib-esm/utils/argValuesHelpers.js +0 -2
- package/lib-esm/utils/compose.d.ts +0 -1
- package/lib-esm/utils/compose.js +0 -2
- package/lib-esm/utils/configure-helpers.d.ts +0 -11
- package/lib-esm/utils/configure-helpers.js +0 -2
- package/lib-esm/utils/cookies.d.ts +0 -7
- package/lib-esm/utils/cookies.js +0 -2
- package/lib-esm/utils/createParsedDocument.d.ts +0 -2
- package/lib-esm/utils/createParsedDocument.js +0 -2
- package/lib-esm/utils/debounce.d.ts +0 -1
- package/lib-esm/utils/debounce.js +0 -2
- package/lib-esm/utils/debug.d.ts +0 -2
- package/lib-esm/utils/debug.js +0 -2
- package/lib-esm/utils/dom.d.ts +0 -7
- package/lib-esm/utils/dom.js +0 -2
- package/lib-esm/utils/environments.d.ts +0 -4
- package/lib-esm/utils/environments.js +0 -2
- package/lib-esm/utils/helpers.d.ts +0 -46
- package/lib-esm/utils/helpers.js +0 -2
- package/lib-esm/utils/index.d.ts +0 -23
- package/lib-esm/utils/index.js +0 -2
- package/lib-esm/utils/isMobile.d.ts +0 -5
- package/lib-esm/utils/isMobile.js +0 -2
- package/lib-esm/utils/loadAndBundleSpec.d.ts +0 -3
- package/lib-esm/utils/loadAndBundleSpec.js +0 -2
- package/lib-esm/utils/local-storage.d.ts +0 -2
- package/lib-esm/utils/local-storage.js +0 -2
- package/lib-esm/utils/object.d.ts +0 -3
- package/lib-esm/utils/object.js +0 -2
- package/lib-esm/utils/openapi.d.ts +0 -43
- package/lib-esm/utils/openapi.js +0 -2
- package/lib-esm/utils/parameters.d.ts +0 -2
- package/lib-esm/utils/parameters.js +0 -2
- package/lib-esm/utils/path.d.ts +0 -4
- package/lib-esm/utils/path.js +0 -2
- package/lib-esm/utils/queryString.d.ts +0 -9
- package/lib-esm/utils/queryString.js +0 -2
- package/lib-esm/utils/replaceVariables.d.ts +0 -2
- package/lib-esm/utils/replaceVariables.js +0 -2
- package/lib-esm/utils/saveTextBeforeHeading.d.ts +0 -7
- package/lib-esm/utils/saveTextBeforeHeading.js +0 -2
- package/lib-esm/utils/security-details.d.ts +0 -9
- package/lib-esm/utils/security-details.js +0 -2
- package/lib-esm/utils/session-storage.d.ts +0 -2
- package/lib-esm/utils/session-storage.js +0 -2
- package/lib-esm/utils/simplifyAstStructure.d.ts +0 -2
- package/lib-esm/utils/simplifyAstStructure.js +0 -2
- package/lib-esm/utils/sort.d.ts +0 -6
- package/lib-esm/utils/sort.js +0 -2
- package/lib-esm/utils/string.d.ts +0 -13
- package/lib-esm/utils/string.js +0 -2
- package/lib-esm/utils/test-utils.d.ts +0 -1
- package/lib-esm/utils/test-utils.js +0 -2
- package/lib-esm/utils/theme-helpers.d.ts +0 -3
- package/lib-esm/utils/theme-helpers.js +0 -4
|
@@ -1,2 +1,146 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.serverVariablesOptions=exports.source=exports.originalOptions=void 0;const spec={openapi:"3.0.0",servers:[{url:"//petstore.swagger.io/v2",description:"Default server"},{url:"//petstore.swagger.io/sandbox",description:"Sandbox server"}],info:{description:"This is a sample server Petstore server.\nYou can find out more about Swagger at\n[http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/).\nFor this sample, you can use the api key `special-key` to test the authorization filters.\n\n# Introduction\nThis API is documented in **OpenAPI format** and is based on\n[Petstore sample](http://petstore.swagger.io/) provided by [swagger.io](http://swagger.io) team.\nIt was **extended** to illustrate features of [generator-openapi-repo](https://github.com/Rebilly/generator-openapi-repo)\ntool and [ReDoc](https://github.com/Redocly/redoc) documentation. In addition to standard\nOpenAPI syntax we use a few [vendor extensions](https://github.com/Redocly/redoc/blob/master/docs/redoc-vendor-extensions.md).\n\n# OpenAPI Specification\nThis API is documented in **OpenAPI format** and is based on\n[Petstore sample](http://petstore.swagger.io/) provided by [swagger.io](http://swagger.io) team.\nIt was **extended** to illustrate features of [generator-openapi-repo](https://github.com/Rebilly/generator-openapi-repo)\ntool and [ReDoc](https://github.com/Redocly/redoc) documentation. In addition to standard\nOpenAPI syntax we use a few [vendor extensions](https://github.com/Redocly/redoc/blob/master/docs/redoc-vendor-extensions.md).\n\n## Subheader 1\n\nConsectetur adipiscing elit. Etiam fringilla tincidunt magna non dignissim. Vestibulum vestibulum ipsum augue, sed rhoncus diam consequat sodales. Sed facilisis maximus enim, ut scelerisque lorem ullamcorper eget. Suspendisse venenatis non lectus sed bibendum.\n*Duis neque ante, ultrices at ornare aliquam, vulputate ac dolor.*\n\n## Subheader 2\n\nLorem ipsum dolor sit amet. Ut tempor sem vitae dui varius, consequat varius ligula fringilla. Nulla accumsan pellentesque lorem eu pharetra. Duis vel est metus. Nulla id quam eget ante egestas fringilla. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur vulputate pulvinar turpis, ac convallis quam.\n\n# Cross-Origin Resource Sharing\nThis API features Cross-Origin Resource Sharing (CORS) implemented in compliance with [W3C spec](https://www.w3.org/TR/cors/).\nAnd that allows cross-domain communication from the browser.\nAll responses have a wildcard same-origin which makes them completely public and accessible to everyone, including any code on any site.\n\n# Authentication\n\nPetstore offers two forms of authentication:\n - API Key\n - OAuth2\nOAuth2 - an open protocol to allow secure authorization in a simple\nand standard method from web, mobile and desktop applications.\n",version:"1.0.0",title:"Swagger Petstore",termsOfService:"http://swagger.io/terms/",contact:{name:"API Support",email:"apiteam@swagger.io",url:"https://github.com/Redocly/redoc"},"x-logo":{url:"https://redocly.github.io/redoc/petstore-logo.png",altText:"Petstore logo"},license:{name:"Apache 2.0",url:"http://www.apache.org/licenses/LICENSE-2.0.html"}},externalDocs:{description:"Find out how to create Github repo for your OpenAPI spec.",url:"https://github.com/Rebilly/generator-openapi-repo"},tags:[{name:"pet",description:"Lorem ipsum dolor sit amet.\n\n**Consectetur** adipiscing elit. Etiam fringilla tincidunt magna non dignissim. Vestibulum vestibulum ipsum augue, sed rhoncus diam consequat sodales. Sed facilisis maximus enim, ut scelerisque lorem ullamcorper eget. Suspendisse venenatis non lectus sed bibendum.\n*Duis neque ante, ultrices at ornare aliquam, vulputate ac dolor.*\n\nPellentesque nulla lorem:\n- dapibus lacinia magna vitae, \n- eleifend bibendum nisi\n\nNullam pretium erat ut augue mollis, id varius orci pretium. \n> Ut efficitur eget dui eget molestie.\n\nUt tempor sem vitae dui varius, consequat varius ligula fringilla. Nulla accumsan pellentesque lorem eu pharetra. Duis vel est metus. Nulla id quam eget ante egestas fringilla. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur vulputate pulvinar turpis, ac convallis quam.\n[More info](http://swagger.io)\n"},{name:"store"},{name:"user",description:"Operations about user\n\n## Custom section 1\nNullam pretium erat ut augue mollis, id varius orci pretium. \n\n\n## Custom section 2\nNulla accumsan pellentesque lorem eu pharetra. Duis vel est metus. Nulla id quam eget ante egestas fringilla. Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n\nSome Item\n"},{name:"pet_model","x-displayName":"The Pet Model",description:'<SchemaDefinition schemaRef="#/components/schemas/Pet" />\n'},{name:"store_model","x-displayName":"The Order Model",description:'<SchemaDefinition schemaRef="#/components/schemas/Order" exampleRef="#/components/examples/Order" showReadOnly={true} showWriteOnly={true} />\n'}],"x-tagGroups":[{name:"General",tags:["pet","store"]},{name:"User Management",tags:["user"]},{name:"Models",tags:["pet_model","store_model"]}],paths:{"/pet":{parameters:[{name:"Accept-Language",in:"header",description:"The language you prefer for messages. Supported values are en-AU, en-CA, en-GB, en-US",example:"en-US",required:!1,schema:{type:"string",default:"en-AU"}},{name:"cookieParam",in:"cookie",description:"Some cookie",required:!0,schema:{type:"integer",format:"int64"}}],post:{tags:["pet"],summary:"Add a new pet to the store",description:"Add new pet to the store inventory.",operationId:"addPet",responses:{405:{description:"Invalid input"}},security:[{petstore_auth:["write:pets","read:pets"]}],"x-codeSamples":[{lang:"C#",source:'PetStore.v1.Pet pet = new PetStore.v1.Pet();\npet.setApiKey("your api key");\npet.petType = PetStore.v1.Pet.TYPE_DOG;\npet.name = "Rex";\n// set other fields\nPetStoreResponse response = pet.create();\nif (response.statusCode == HttpStatusCode.Created)\n{\n // Successfully created\n}\nelse\n{\n // Something wrong -- check response for errors\n Console.WriteLine(response.getRawResponse());\n}\n'},{lang:"PHP",source:'$form = new \\PetStore\\Entities\\Pet();\n$form->setPetType("Dog");\n$form->setName("Rex");\n// set other fields\ntry {\n $pet = $client->pets()->create($form);\n} catch (UnprocessableEntityException $e) {\n var_dump($e->getErrors());\n}\n'}],requestBody:{$ref:"#/components/requestBodies/Pet"}},put:{tags:["pet"],summary:"Update an existing pet",description:"",operationId:"updatePet",responses:{400:{description:"Invalid ID supplied"},404:{description:"Pet not found"},405:{description:"Validation exception"}},security:[{petstore_auth:["write:pets","read:pets"]}],"x-codeSamples":[{lang:"PHP",source:'$form = new \\PetStore\\Entities\\Pet();\n$form->setPetId(1);\n$form->setPetType("Dog");\n$form->setName("Rex");\n// set other fields\ntry {\n $pet = $client->pets()->update($form);\n} catch (UnprocessableEntityException $e) {\n var_dump($e->getErrors());\n}\n'}],requestBody:{$ref:"#/components/requestBodies/Pet"}}},"/pet/{petId}":{get:{tags:["pet"],summary:"Find pet by ID",description:"Returns a single pet",operationId:"getPetById",parameters:[{name:"petId",in:"path",description:"ID of pet to return",required:!0,deprecated:!0,schema:{type:"integer",format:"int64"}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{$ref:"#/components/schemas/Pet"}},"application/xml":{schema:{$ref:"#/components/schemas/Pet"}}}},400:{description:"Invalid ID supplied"},404:{description:"Pet not found"}},security:[{api_key:[]}]},post:{tags:["pet"],summary:"Updates a pet in the store with form data",description:"",operationId:"updatePetWithForm",parameters:[{name:"petId",in:"path",description:"ID of pet that needs to be updated",required:!0,schema:{type:"integer",format:"int64"}}],responses:{405:{description:"Invalid input"}},security:[{petstore_auth:["write:pets","read:pets"]}],requestBody:{content:{"application/x-www-form-urlencoded":{schema:{type:"object",properties:{name:{description:"Updated name of the pet",type:"string"},status:{description:"Updated status of the pet",type:"string"}}}}}}},delete:{tags:["pet"],summary:"Deletes a pet",description:"",operationId:"deletePet",parameters:[{name:"api_key",in:"header",required:!1,schema:{type:"string"},example:"Bearer <TOKEN>"},{name:"petId",in:"path",description:"Pet id to delete",required:!0,schema:{type:"integer",format:"int64"}}],responses:{400:{description:"Invalid pet value"}},security:[{petstore_auth:["write:pets","read:pets"]}]}},"/pet/{petId}/uploadImage":{post:{tags:["pet"],summary:"uploads an image",description:"",operationId:"uploadFile",parameters:[{name:"petId",in:"path",description:"ID of pet to update",required:!0,schema:{type:"integer",format:"int64"}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{$ref:"#/components/schemas/ApiResponse"}}}}},security:[{petstore_auth:["write:pets","read:pets"]}],requestBody:{content:{"application/octet-stream":{schema:{type:"string",format:"binary"}}}}}},"/pet/{petId}/uploadImage/{data}":{post:{tags:["pet"],summary:"uploads an image",description:"",operationId:"uploadFile",parameters:[{name:"petId",in:"path",description:"ID of pet to update",required:!0,schema:{type:"integer",format:"int64"}},{name:"data",in:"path",description:"ID of pet to update",required:!0,schema:{type:"integer",format:"int64"}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{$ref:"#/components/schemas/ApiResponse"}}}}},security:[{petstore_auth:["write:pets","read:pets"]}],requestBody:{content:{"application/octet-stream":{schema:{type:"string",format:"binary"}}}}}},"/pet/findByStatus":{get:{tags:["pet"],summary:"Finds Pets by status",description:"Multiple status values can be provided with comma separated strings",operationId:"findPetsByStatus",parameters:[{name:"status",in:"query",description:"Status values that need to be considered for filter",required:!0,style:"form",schema:{type:"array",minItems:1,maxItems:3,items:{type:"string",enum:["available","pending","sold"],default:"available"}}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Pet"}}},"application/xml":{schema:{type:"array",items:{$ref:"#/components/schemas/Pet"}}}}},400:{description:"Invalid status value"}},security:[{petstore_auth:["write:pets","read:pets"]}]}},"/pet/findByTags":{get:{tags:["pet"],summary:"Finds Pets by tags",description:"Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.",operationId:"findPetsByTags",deprecated:!0,parameters:[{name:"tags",in:"query",description:"Tags to filter by",required:!0,style:"form",schema:{type:"array",items:{type:"string"}}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Pet"}}},"application/xml":{schema:{type:"array",items:{$ref:"#/components/schemas/Pet"}}}}},400:{description:"Invalid tag value"}},security:[{petstore_auth:["write:pets","read:pets"]}]}},"/store/inventory":{get:{tags:["store"],summary:"Returns pet inventories by status",description:"Returns a map of status codes to quantities",operationId:"getInventory",responses:{200:{description:"successful operation",content:{"application/json":{schema:{type:"object",additionalProperties:{type:"integer",format:"int32"}}}}}},security:[{api_key:[]}]}},"/store/order":{post:{tags:["store"],summary:"Place an order for a pet",description:"",operationId:"placeOrder",responses:{200:{description:"successful operation",content:{"application/json":{schema:{$ref:"#/components/schemas/Order"}},"application/xml":{schema:{$ref:"#/components/schemas/Order"}}}},400:{description:"Invalid Order",content:{"application/json":{example:{status:400,message:"Invalid Order"}}}}},requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/Order"}}},description:"order placed for purchasing the pet",required:!0}}},"/store/order/{orderId}":{get:{tags:["store"],summary:"Find purchase order by ID",description:"For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions",operationId:"getOrderById",parameters:[{name:"orderId",in:"path",description:"ID of pet that needs to be fetched",required:!0,schema:{type:"integer",format:"int64",minimum:1,maximum:5}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{$ref:"#/components/schemas/Order"}},"application/xml":{schema:{$ref:"#/components/schemas/Order"}}}},400:{description:"Invalid ID supplied"},404:{description:"Order not found"}}},delete:{tags:["store"],summary:"Delete purchase order by ID",description:"For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors",operationId:"deleteOrder",parameters:[{name:"orderId",in:"path",description:"ID of the order that needs to be deleted",required:!0,schema:{type:"string",minimum:1}}],responses:{400:{description:"Invalid ID supplied"},404:{description:"Order not found"}}}},"/store/subscribe":{post:{tags:["store"],summary:"Subscribe to the Store events",description:"Add subscription for a store events",requestBody:{content:{"application/json":{schema:{type:"object",properties:{callbackUrl:{type:"string",format:"uri",description:"This URL will be called by the server when the desired event will occur",example:"https://myserver.com/send/callback/here"},eventName:{type:"string",description:"Event name for the subscription",enum:["orderInProgress","orderShipped","orderDelivered"],example:"orderInProgress"}},required:["callbackUrl","eventName"]}}}},responses:{201:{description:"Subscription added",content:{"application/json":{schema:{type:"object",properties:{subscriptionId:{type:"string",example:"AAA-123-BBB-456"}}}}}}},callbacks:{orderInProgress:{"{$request.body#/callbackUrl}?event={$request.body#/eventName}":{servers:[{url:"//callback-url.path-level/v1",description:"Path level server 1"},{url:"//callback-url.path-level/v2",description:"Path level server 2"}],post:{summary:"Order in Progress (Summary)",description:'A callback triggered every time an Order is updated status to "inProgress" (Description)',externalDocs:{description:"Find out more",url:"https://more-details.com/demo"},requestBody:{content:{"application/json":{schema:{type:"object",properties:{orderId:{type:"string",example:"123"},timestamp:{type:"string",format:"date-time",example:"2018-10-19T16:46:45Z"},status:{type:"string",example:"inProgress"}}}},"application/xml":{schema:{type:"object",properties:{orderId:{type:"string",example:"123"}}},example:'<?xml version="1.0" encoding="UTF-8"?>\n<root>\n <orderId>123</orderId>\n <status>inProgress</status>\n <timestamp>2018-10-19T16:46:45Z</timestamp>\n</root>\n'}}},responses:{200:{description:"Callback successfully processed and no retries will be performed",content:{"application/json":{schema:{type:"object",properties:{someProp:{type:"string",example:"123"}}}}}},299:{description:"Response for cancelling subscription"},500:{description:"Callback processing failed and retries will be performed"}},"x-codeSamples":[{lang:"C#",source:'PetStore.v1.Pet pet = new PetStore.v1.Pet();\npet.setApiKey("your api key");\npet.petType = PetStore.v1.Pet.TYPE_DOG;\npet.name = "Rex";\n// set other fields\nPetStoreResponse response = pet.create();\nif (response.statusCode == HttpStatusCode.Created)\n{\n // Successfully created\n}\nelse\n{\n // Something wrong -- check response for errors\n Console.WriteLine(response.getRawResponse());\n}\n'},{lang:"PHP",source:'$form = new \\PetStore\\Entities\\Pet();\n$form->setPetType("Dog");\n$form->setName("Rex");\n// set other fields\ntry {\n $pet = $client->pets()->create($form);\n} catch (UnprocessableEntityException $e) {\n var_dump($e->getErrors());\n}\n'}]},put:{description:"Order in Progress (Only Description)",servers:[{url:"//callback-url.operation-level/v1",description:"Operation level server 1 (Operation override)"},{url:"//callback-url.operation-level/v2",description:"Operation level server 2 (Operation override)"}],requestBody:{content:{"application/json":{schema:{type:"object",properties:{orderId:{type:"string",example:"123"},timestamp:{type:"string",format:"date-time",example:"2018-10-19T16:46:45Z"},status:{type:"string",example:"inProgress"}}}},"application/xml":{schema:{type:"object",properties:{orderId:{type:"string",example:"123"}}},example:'<?xml version="1.0" encoding="UTF-8"?>\n<root>\n <orderId>123</orderId>\n <status>inProgress</status>\n <timestamp>2018-10-19T16:46:45Z</timestamp>\n</root>\n'}}},responses:{200:{description:"Callback successfully processed and no retries will be performed",content:{"application/json":{schema:{type:"object",properties:{someProp:{type:"string",example:"123"}}}}}}}}}},orderShipped:{"{$request.body#/callbackUrl}?event={$request.body#/eventName}":{post:{description:"Very long description\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor\nincididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis\nnostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\nDuis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu\nfugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in\nculpa qui officia deserunt mollit anim id est laborum.\n",requestBody:{content:{"application/json":{schema:{type:"object",properties:{orderId:{type:"string",example:"123"},timestamp:{type:"string",format:"date-time",example:"2018-10-19T16:46:45Z"},estimatedDeliveryDate:{type:"string",format:"date-time",example:"2018-11-11T16:00:00Z"}}}}}},responses:{200:{description:"Callback successfully processed and no retries will be performed"}}}}},orderDelivered:{"http://notificationServer.com?url={$request.body#/callbackUrl}&event={$request.body#/eventName}":{post:{deprecated:!0,summary:"Order delivered",description:"A callback triggered every time an Order is delivered to the recipient",requestBody:{content:{"application/json":{schema:{type:"object",properties:{orderId:{type:"string",example:"123"},timestamp:{type:"string",format:"date-time",example:"2018-10-19T16:46:45Z"}}}}}},responses:{200:{description:"Callback successfully processed and no retries will be performed"}}}}}}}},"/user":{post:{tags:["user"],summary:"Create user",description:"This can only be done by the logged in user.",operationId:"createUser",responses:{default:{description:"successful operation"}},requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/User"}}},description:"Created user object",required:!0}}},"/user/{username}":{get:{tags:["user"],summary:"Get user by user name",description:"",operationId:"getUserByName",parameters:[{name:"username",in:"path",description:"The name that needs to be fetched. Use user1 for testing. ",required:!0,schema:{type:"string"}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{$ref:"#/components/schemas/User"}},"application/xml":{schema:{$ref:"#/components/schemas/User"}}}},400:{description:"Invalid username supplied"},404:{description:"User not found"}}},put:{tags:["user"],summary:"Updated user",description:"This can only be done by the logged in user.",operationId:"updateUser",parameters:[{name:"username",in:"path",description:"name that need to be deleted",required:!0,schema:{type:"string"}}],responses:{400:{description:"Invalid user supplied"},404:{description:"User not found"}},requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/User"}}},description:"Updated user object",required:!0}},delete:{tags:["user"],summary:"Delete user",description:"This can only be done by the logged in user.",operationId:"deleteUser",parameters:[{name:"username",in:"path",description:"The name that needs to be deleted",required:!0,schema:{type:"string"}}],responses:{400:{description:"Invalid username supplied"},404:{description:"User not found"}}}},"/user/createWithArray":{post:{tags:["user"],summary:"Creates list of users with given input array",description:"",operationId:"createUsersWithArrayInput",responses:{default:{description:"successful operation"}},requestBody:{$ref:"#/components/requestBodies/UserArray"}}},"/user/createWithList":{post:{tags:["user"],summary:"Creates list of users with given input array",description:"",operationId:"createUsersWithListInput",responses:{default:{description:"successful operation"}},requestBody:{$ref:"#/components/requestBodies/UserArray"}}},"/user/login":{get:{tags:["user"],summary:"Logs user into the system",description:"",operationId:"loginUser",parameters:[{name:"username",in:"query",description:"The user name for login",required:!0,schema:{type:"string"}},{name:"password",in:"query",description:"The password for login in clear text",required:!0,schema:{type:"string"}}],responses:{200:{description:"successful operation",headers:{"X-Rate-Limit":{description:"calls per hour allowed by the user",schema:{type:"integer",format:"int32"}},"X-Expires-After":{description:"date in UTC when token expires",schema:{type:"string",format:"date-time"}}},content:{"application/json":{schema:{type:"string"},examples:{response:{value:"OK"}}},"application/xml":{schema:{type:"string"},examples:{response:{value:"<Message> OK </Message>"}}},"text/plain":{examples:{response:{value:"OK"}}}}},400:{description:"Invalid username/password supplied"}}}},"/user/logout":{get:{tags:["user"],summary:"Logs out current logged in user session",description:"",operationId:"logoutUser",responses:{default:{description:"successful operation"}}}}},components:{schemas:{ApiResponse:{type:"object",properties:{code:{type:"integer",format:"int32"},type:{type:"string"},message:{type:"string"}}},Cat:{description:"A representation of a cat",allOf:[{$ref:"#/components/schemas/Pet"},{type:"object",properties:{huntingSkill:{type:"string",description:"The measured skill for hunting",default:"lazy",example:"adventurous",enum:["clueless","lazy","adventurous","aggressive"]}},required:["huntingSkill"]}]},Category:{type:"object",properties:{id:{description:"Category ID",allOf:[{$ref:"#/components/schemas/Id"}]},name:{description:"Category name",type:"string",minLength:1},sub:{description:"Test Sub Category",type:"object",properties:{prop1:{type:"string",description:"Dumb Property"}}}},xml:{name:"Category"}},Dog:{description:"A representation of a dog",allOf:[{$ref:"#/components/schemas/Pet"},{type:"object",properties:{packSize:{type:"integer",format:"int32",description:"The size of the pack the dog is from",default:1,minimum:1}},required:["packSize"]}]},HoneyBee:{description:"A representation of a honey bee",allOf:[{$ref:"#/components/schemas/Pet"},{type:"object",properties:{honeyPerDay:{type:"number",description:"Average amount of honey produced per day in ounces",example:3.14,multipleOf:.01}},required:["honeyPerDay"]}]},Id:{type:"integer",format:"int64",readOnly:!0},Order:{type:"object",properties:{id:{description:"Order ID",allOf:[{$ref:"#/components/schemas/Id"}]},petId:{description:"Pet ID",allOf:[{$ref:"#/components/schemas/Id"}]},quantity:{type:"integer",format:"int32",minimum:1,default:1},shipDate:{description:"Estimated ship date",type:"string",format:"date-time"},status:{type:"string",description:"Order Status",enum:["placed","approved","delivered"]},complete:{description:"Indicates whenever order was completed or not",type:"boolean",default:!1,readOnly:!0},requestId:{description:"Unique Request Id",type:"string",writeOnly:!0}},xml:{name:"Order"}},Pet:{type:"object",required:["name","photoUrls"],discriminator:{propertyName:"petType",mapping:{cat:"#/components/schemas/Cat",dog:"#/components/schemas/Dog",bee:"#/components/schemas/HoneyBee"}},properties:{id:{externalDocs:{description:"Find more info here",url:"https://example.com"},description:"Pet ID",allOf:[{$ref:"#/components/schemas/Id"}]},category:{description:"Categories this pet belongs to",allOf:[{$ref:"#/components/schemas/Category"}]},name:{description:"The name given to a pet",type:"string",example:"Guru"},photoUrls:{description:"The list of URL to a cute photos featuring pet",type:"array",maxItems:20,xml:{name:"photoUrl",wrapped:!0},items:{type:"string",format:"url"}},friend:{allOf:[{$ref:"#/components/schemas/Pet"}]},tags:{description:"Tags attached to the pet",type:"array",minItems:1,xml:{name:"tag",wrapped:!0},items:{$ref:"#/components/schemas/Tag"}},status:{type:"string",description:"Pet status in the store",enum:["available","pending","sold"]},petType:{description:"Type of a pet",type:"string"}},xml:{name:"Pet"}},Tag:{type:"object",properties:{id:{description:"Tag ID",allOf:[{$ref:"#/components/schemas/Id"}]},name:{description:"Tag name",type:"string",minLength:1}},xml:{name:"Tag"}},User:{type:"object",properties:{id:{$ref:"#/components/schemas/Id"},pet:{oneOf:[{$ref:"#/components/schemas/Pet"},{$ref:"#/components/schemas/Tag"}]},username:{description:"User supplied username",type:"string",minLength:4,example:"John78"},firstName:{description:"User first name",type:"string",minLength:1,example:"John"},lastName:{description:"User last name",type:"string",minLength:1,example:"Smith"},email:{description:"User email address",type:"string",format:"email",example:"john.smith@example.com"},password:{type:"string",description:"User password, MUST contain a mix of upper and lower case letters, as well as digits",format:"password",minLength:8,pattern:"/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/",example:"drowssaP123"},phone:{description:"User phone number in international format",type:"string",pattern:"/^\\+(?:[0-9]-?){6,14}[0-9]$/",example:"+1-202-555-0192"},userStatus:{description:"User status",type:"integer",format:"int32"}},xml:{name:"User"}}},requestBodies:{Pet:{content:{"application/json":{schema:{allOf:[{description:"My Pet",title:"Pettie"},{$ref:"#/components/schemas/Pet"}]}},"application/xml":{schema:{type:"object",properties:{name:{type:"string",description:"hooray"}}}}},description:"Pet object that needs to be added to the store",required:!0},UserArray:{content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/User"}}}},description:"List of user object",required:!0}},securitySchemes:{petstore_auth:{description:"Get access to data while protecting your account credentials.\nOAuth2 is also a safer and more secure way to give you access.\n",type:"oauth2",flows:{clientCredentials:{tokenUrl:"http://petstore.swagger.io/api/oauth/dialog",scopes:{"write:pets":"modify pets in your account","read:pets":"read your pets"}}}},api_key:{description:"For this sample, you can use the api key `special-key` to test the authorization filters.\n",type:"apiKey",name:"api_key",in:"header"}},examples:{Order:{value:{quantity:1,shipDate:"2018-10-19T16:46:45Z",status:"placed",complete:!1}}}},"x-webhooks":{newPet:{post:{summary:"New pet",description:"Information about a new pet in the systems",operationId:"newPet",tags:["pet"],requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/Pet"}}}},responses:{200:{description:"Return a 200 status to indicate that the data was received successfully"}}}}}};exports.originalOptions={withImports:!0,withComments:!1,skipOptionalParameters:!1,withOAuth2Call:!0,spec:spec},exports.source={"POST http://petstore.swagger.io/v2/pet":{method:"post",url:"http://petstore.swagger.io/v2/pet",httpVersion:"HTTP/1.1",cookies:[{name:"cookieParam",value:"0"}],headers:[{name:"Content-Type",value:"application/json"},{name:"Accept-Language",value:"en-AU"},{name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"}],queryString:[],postData:{mimeType:"application/json",text:'{"category":{"name":"string","sub":{"prop1":"string"}},"name":"Guru","photoUrls":["string"],"friend":{},"tags":[{"name":"string"}],"status":"available","petType":"cat","huntingSkill":"adventurous"}',params:[],jsonObj:{category:{name:"string",sub:{prop1:"string"}},name:"Guru",photoUrls:["string"],friend:{},tags:[{name:"string"}],status:"available",petType:"cat",huntingSkill:"adventurous"}},headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[{method:"POST",url:"http://petstore.swagger.io/api/oauth/dialog",httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:"application/x-www-form-urlencoded"},{name:"Accept",value:"application/json"}],queryString:[],postData:{mimeType:"application/x-www-form-urlencoded",text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:"YOUR_CLIENT_ID"},{name:"client_secret",value:"YOUR_CLIENT_SECRET"},{name:"scope",value:"write:pets read:pets"}]},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}],pathParameters:{},serverVariables:{},queryObj:{},headersObj:{"Content-Type":"application/json","Accept-Language":"en-AU",Authorization:"Bearer <YOUR_TOKEN_HERE>"},cookiesObj:{cookieParam:"0"},allHeaders:{cookie:"cookieParam=0","Content-Type":"application/json","Accept-Language":"en-AU",Authorization:"Bearer <YOUR_TOKEN_HERE>"},uriObj:{protocol:"http:",slashes:!0,auth:null,host:"petstore.swagger.io",port:null,hostname:"petstore.swagger.io",hash:null,search:"",query:{},pathname:"/v2/pet",path:"/v2/pet",href:"http://petstore.swagger.io/v2/pet"},fullUrl:"http://petstore.swagger.io/v2/pet"},"POST http://petstore.swagger.io/v2/pet/{petId}/uploadImage/{data}":{method:"post",url:"http://petstore.swagger.io/v2/pet/{petId}/uploadImage/{data}",httpVersion:"HTTP/1.1",cookies:[],headers:[{name:"Content-Type",value:"application/octet-stream"},{name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"}],queryString:[],headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[{method:"POST",url:"http://petstore.swagger.io/api/oauth/dialog",httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:"application/x-www-form-urlencoded"},{name:"Accept",value:"application/json"}],queryString:[],postData:{mimeType:"application/x-www-form-urlencoded",text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:"YOUR_CLIENT_ID"},{name:"client_secret",value:"YOUR_CLIENT_SECRET"},{name:"scope",value:"write:pets read:pets"}]},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}],pathParameters:{petId:"",data:""},serverVariables:{},queryObj:{},headersObj:{"Content-Type":"application/octet-stream",Authorization:"Bearer <YOUR_TOKEN_HERE>"},cookiesObj:{},allHeaders:{"Content-Type":"application/octet-stream",Authorization:"Bearer <YOUR_TOKEN_HERE>"},uriObj:{protocol:"http:",slashes:!0,auth:null,host:"petstore.swagger.io",port:null,hostname:"petstore.swagger.io",hash:null,search:"",query:{},pathname:"/v2/pet/{petId}/uploadImage/{data}",path:"/v2/pet/{petId}/uploadImage/{data}",href:"http://petstore.swagger.io/v2/pet/{petId}/uploadImage/{data}"},fullUrl:"http://petstore.swagger.io/v2/pet/{petId}/uploadImage/{data}"},"PUT http://petstore.swagger.io/v2/pet":{method:"put",url:"http://petstore.swagger.io/v2/pet",httpVersion:"HTTP/1.1",cookies:[{name:"cookieParam",value:"0"}],headers:[{name:"Content-Type",value:"application/json"},{name:"Accept-Language",value:"en-AU"},{name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"}],queryString:[],postData:{mimeType:"application/json",text:'{"category":{"name":"string","sub":{"prop1":"string"}},"name":"Guru","photoUrls":["string"],"friend":{},"tags":[{"name":"string"}],"status":"available","petType":"cat","huntingSkill":"adventurous"}',params:[],jsonObj:{category:{name:"string",sub:{prop1:"string"}},name:"Guru",photoUrls:["string"],friend:{},tags:[{name:"string"}],status:"available",petType:"cat",huntingSkill:"adventurous"}},headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[{method:"POST",url:"http://petstore.swagger.io/api/oauth/dialog",httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:"application/x-www-form-urlencoded"},{name:"Accept",value:"application/json"}],queryString:[],postData:{mimeType:"application/x-www-form-urlencoded",text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:"YOUR_CLIENT_ID"},{name:"client_secret",value:"YOUR_CLIENT_SECRET"},{name:"scope",value:"write:pets read:pets"}]},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}],pathParameters:{},serverVariables:{},queryObj:{},headersObj:{"Content-Type":"application/json","Accept-Language":"en-AU",Authorization:"Bearer <YOUR_TOKEN_HERE>"},cookiesObj:{cookieParam:"0"},allHeaders:{cookie:"cookieParam=0","Content-Type":"application/json","Accept-Language":"en-AU",Authorization:"Bearer <YOUR_TOKEN_HERE>"},uriObj:{protocol:"http:",slashes:!0,auth:null,host:"petstore.swagger.io",port:null,hostname:"petstore.swagger.io",hash:null,search:"",query:{},pathname:"/v2/pet",path:"/v2/pet",href:"http://petstore.swagger.io/v2/pet"},fullUrl:"http://petstore.swagger.io/v2/pet"},"POST http://petstore.swagger.io/v2/pet/{petId}/uploadImage":{method:"post",url:"http://petstore.swagger.io/v2/pet/{petId}/uploadImage",httpVersion:"HTTP/1.1",cookies:[],headers:[{name:"Content-Type",value:"application/octet-stream"},{name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"}],queryString:[],headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[{method:"POST",url:"http://petstore.swagger.io/api/oauth/dialog",httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:"application/x-www-form-urlencoded"},{name:"Accept",value:"application/json"}],queryString:[],postData:{mimeType:"application/x-www-form-urlencoded",text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:"YOUR_CLIENT_ID"},{name:"client_secret",value:"YOUR_CLIENT_SECRET"},{name:"scope",value:"write:pets read:pets"}]},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}],pathParameters:{petId:""},serverVariables:{},queryObj:{},headersObj:{"Content-Type":"application/octet-stream",Authorization:"Bearer <YOUR_TOKEN_HERE>"},cookiesObj:{},allHeaders:{"Content-Type":"application/octet-stream",Authorization:"Bearer <YOUR_TOKEN_HERE>"},uriObj:{protocol:"http:",slashes:!0,auth:null,host:"petstore.swagger.io",port:null,hostname:"petstore.swagger.io",hash:null,search:"",query:{},pathname:"/v2/pet/{petId}/uploadImage",path:"/v2/pet/{petId}/uploadImage",href:"http://petstore.swagger.io/v2/pet/{petId}/uploadImage"},fullUrl:"http://petstore.swagger.io/v2/pet/{petId}/uploadImage"},"GET http://petstore.swagger.io/v2/pet/findByStatus/{id}":{method:"get",url:"http://petstore.swagger.io/v2/pet/findByStatus/{id}",httpVersion:"HTTP/1.1",cookies:[],headers:[{name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"}],queryString:[{name:"status",value:"available"}],headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[{method:"POST",url:"http://petstore.swagger.io/api/oauth/dialog",httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:"application/x-www-form-urlencoded"},{name:"Accept",value:"application/json"}],queryString:[],postData:{mimeType:"application/x-www-form-urlencoded",text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:"YOUR_CLIENT_ID"},{name:"client_secret",value:"YOUR_CLIENT_SECRET"},{name:"scope",value:"write:pets read:pets"}]},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}],pathParameters:{id:""},serverVariables:{},queryObj:{status:"available"},headersObj:{Authorization:"Bearer <YOUR_TOKEN_HERE>"},cookiesObj:{},allHeaders:{Authorization:"Bearer <YOUR_TOKEN_HERE>"},uriObj:{protocol:"http:",slashes:!0,auth:null,host:"petstore.swagger.io",port:null,hostname:"petstore.swagger.io",hash:null,search:"status=available",query:{status:"available"},pathname:"/v2/pet/findByStatus/{id}",path:"/v2/pet/findByStatus/{id}?status=available",href:"http://petstore.swagger.io/v2/pet/findByStatus/%7Bid%7D"},fullUrl:"http://petstore.swagger.io/v2/pet/findByStatus/{id}?status=available"},"POST https://{customerId}.saas-app.com:{port}/v2":{method:"post",url:"https://{customerId}.saas-app.com:{port}/v2/pet",httpVersion:"HTTP/1.1",cookies:[{name:"cookieParam",value:"0"}],headers:[{name:"Content-Type",value:"application/json"},{name:"Accept-Language",value:"en-AU"},{name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"}],queryString:[],postData:{mimeType:"application/json",text:"text",params:[],jsonObj:{category:{name:"string",sub:{prop1:"string"}},name:"Guru",photoUrls:["string"],friend:{},tags:[{name:"string"}],cvv_check:"string",status:"available",petType:"cat",huntingSkill:"adventurous"}},headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[],pathParameters:{},serverVariables:{customerId:"demo",port:"443"},queryObj:{},headersObj:{"Content-Type":"application/json","Accept-Language":"en-AU",Authorization:"Bearer <YOUR_TOKEN_HERE>"},cookiesObj:{cookieParam:"0"},allHeaders:{cookie:"cookieParam=0","Content-Type":"application/json","Accept-Language":"en-AU",Authorization:"Bearer <YOUR_TOKEN_HERE>"},uriObj:{protocol:"https:",slashes:!0,auth:null,host:"",port:null,hostname:"",hash:null,search:"",query:{},pathname:"{customerId}.saas-app.com:{port}/v2/pet",path:"{customerId}.saas-app.com:{port}/v2/pet",href:"https:///%7BcustomerId%7D.saas-app.com:%7Bport%7D/v2/pet"},fullUrl:"https://{customerId}.saas-app.com:{port}/v2/pet"},"POST http://petstore.swagger.io/login":{method:"post",url:"http://petstore.swagger.io/login",httpVersion:"HTTP/1.1",headers:[],queryString:[],postData:{mimeType:"application/json",text:"text",params:[],jsonObj:{}},basicAuth:{username:"usernamestring",password:"passwordstring"},headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[],pathParameters:{},queryObj:{},headersObj:{},cookiesObj:{},allHeaders:{},serverVariables:{},cookies:[{name:"cookieParam",value:"0"}],uriObj:{protocol:"https:",slashes:!0,auth:null,host:"",port:null,hostname:"",hash:null,search:"",query:{},pathname:"petstore.swagger.io/login",path:"petstore.swagger.io/login",href:"https://petstore.swagger.io/login"},fullUrl:"https://petstore.swagger.io/login"},"POST http://petstore.swagger.io/v2/uploadImage":{httpVersion:"HTTP/1.1",queryString:[],basicAuth:{username:"usernamestring",password:"passwordstring"},headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[],pathParameters:{},queryObj:{},headersObj:{},cookiesObj:{},allHeaders:{},serverVariables:{},cookies:[{name:"cookieParam",value:"0"}],uriObj:{protocol:"https:",slashes:!0,auth:null,host:"",port:null,hostname:"",hash:null,search:"",query:{},pathname:"petstore.swagger.io/login",path:"petstore.swagger.io/login",href:"https://petstore.swagger.io/login"},fullUrl:"https://petstore.swagger.io/login",method:"POST",url:"http://petstore.swagger.io/v2/uploadImage",headers:[],postData:{mimeType:"multipart/form-data",params:[{name:"file",value:"pet_image.png"},{name:"description",value:"Pet photo"}]}}},exports.serverVariablesOptions={withImports:!0,withComments:!1,skipOptionalParameters:!1,withOAuth2Call:!0,spec:Object.assign(Object.assign({},spec),{servers:[{url:"https://{customerId}.saas-app.com:{port}/v2",variables:{customerId:{default:"demo",description:"Customer ID assigned by the service provider"},port:{enum:["443","8443"],default:"443"}}}]})};
|
|
2
|
-
|
|
1
|
+
const e={openapi:"3.0.0",servers:[{url:"//petstore.swagger.io/v2",description:"Default server"},{url:"//petstore.swagger.io/sandbox",description:"Sandbox server"}],info:{description:`This is a sample server Petstore server.
|
|
2
|
+
You can find out more about Swagger at
|
|
3
|
+
[http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/).
|
|
4
|
+
For this sample, you can use the api key \`special-key\` to test the authorization filters.
|
|
5
|
+
|
|
6
|
+
# Introduction
|
|
7
|
+
This API is documented in **OpenAPI format** and is based on
|
|
8
|
+
[Petstore sample](http://petstore.swagger.io/) provided by [swagger.io](http://swagger.io) team.
|
|
9
|
+
It was **extended** to illustrate features of [generator-openapi-repo](https://github.com/Rebilly/generator-openapi-repo)
|
|
10
|
+
tool and [ReDoc](https://github.com/Redocly/redoc) documentation. In addition to standard
|
|
11
|
+
OpenAPI syntax we use a few [vendor extensions](https://github.com/Redocly/redoc/blob/master/docs/redoc-vendor-extensions.md).
|
|
12
|
+
|
|
13
|
+
# OpenAPI Specification
|
|
14
|
+
This API is documented in **OpenAPI format** and is based on
|
|
15
|
+
[Petstore sample](http://petstore.swagger.io/) provided by [swagger.io](http://swagger.io) team.
|
|
16
|
+
It was **extended** to illustrate features of [generator-openapi-repo](https://github.com/Rebilly/generator-openapi-repo)
|
|
17
|
+
tool and [ReDoc](https://github.com/Redocly/redoc) documentation. In addition to standard
|
|
18
|
+
OpenAPI syntax we use a few [vendor extensions](https://github.com/Redocly/redoc/blob/master/docs/redoc-vendor-extensions.md).
|
|
19
|
+
|
|
20
|
+
## Subheader 1
|
|
21
|
+
|
|
22
|
+
Consectetur adipiscing elit. Etiam fringilla tincidunt magna non dignissim. Vestibulum vestibulum ipsum augue, sed rhoncus diam consequat sodales. Sed facilisis maximus enim, ut scelerisque lorem ullamcorper eget. Suspendisse venenatis non lectus sed bibendum.
|
|
23
|
+
*Duis neque ante, ultrices at ornare aliquam, vulputate ac dolor.*
|
|
24
|
+
|
|
25
|
+
## Subheader 2
|
|
26
|
+
|
|
27
|
+
Lorem ipsum dolor sit amet. Ut tempor sem vitae dui varius, consequat varius ligula fringilla. Nulla accumsan pellentesque lorem eu pharetra. Duis vel est metus. Nulla id quam eget ante egestas fringilla. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur vulputate pulvinar turpis, ac convallis quam.
|
|
28
|
+
|
|
29
|
+
# Cross-Origin Resource Sharing
|
|
30
|
+
This API features Cross-Origin Resource Sharing (CORS) implemented in compliance with [W3C spec](https://www.w3.org/TR/cors/).
|
|
31
|
+
And that allows cross-domain communication from the browser.
|
|
32
|
+
All responses have a wildcard same-origin which makes them completely public and accessible to everyone, including any code on any site.
|
|
33
|
+
|
|
34
|
+
# Authentication
|
|
35
|
+
|
|
36
|
+
Petstore offers two forms of authentication:
|
|
37
|
+
- API Key
|
|
38
|
+
- OAuth2
|
|
39
|
+
OAuth2 - an open protocol to allow secure authorization in a simple
|
|
40
|
+
and standard method from web, mobile and desktop applications.
|
|
41
|
+
`,version:"1.0.0",title:"Swagger Petstore",termsOfService:"http://swagger.io/terms/",contact:{name:"API Support",email:"apiteam@swagger.io",url:"https://github.com/Redocly/redoc"},"x-logo":{url:"https://redocly.github.io/redoc/petstore-logo.png",altText:"Petstore logo"},license:{name:"Apache 2.0",url:"http://www.apache.org/licenses/LICENSE-2.0.html"}},externalDocs:{description:"Find out how to create Github repo for your OpenAPI spec.",url:"https://github.com/Rebilly/generator-openapi-repo"},tags:[{name:"pet",description:`Lorem ipsum dolor sit amet.
|
|
42
|
+
|
|
43
|
+
**Consectetur** adipiscing elit. Etiam fringilla tincidunt magna non dignissim. Vestibulum vestibulum ipsum augue, sed rhoncus diam consequat sodales. Sed facilisis maximus enim, ut scelerisque lorem ullamcorper eget. Suspendisse venenatis non lectus sed bibendum.
|
|
44
|
+
*Duis neque ante, ultrices at ornare aliquam, vulputate ac dolor.*
|
|
45
|
+
|
|
46
|
+
Pellentesque nulla lorem:
|
|
47
|
+
- dapibus lacinia magna vitae,
|
|
48
|
+
- eleifend bibendum nisi
|
|
49
|
+
|
|
50
|
+
Nullam pretium erat ut augue mollis, id varius orci pretium.
|
|
51
|
+
> Ut efficitur eget dui eget molestie.
|
|
52
|
+
|
|
53
|
+
Ut tempor sem vitae dui varius, consequat varius ligula fringilla. Nulla accumsan pellentesque lorem eu pharetra. Duis vel est metus. Nulla id quam eget ante egestas fringilla. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur vulputate pulvinar turpis, ac convallis quam.
|
|
54
|
+
[More info](http://swagger.io)
|
|
55
|
+
`},{name:"store"},{name:"user",description:`Operations about user
|
|
56
|
+
|
|
57
|
+
## Custom section 1
|
|
58
|
+
Nullam pretium erat ut augue mollis, id varius orci pretium.
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
## Custom section 2
|
|
62
|
+
Nulla accumsan pellentesque lorem eu pharetra. Duis vel est metus. Nulla id quam eget ante egestas fringilla. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
63
|
+
|
|
64
|
+
Some Item
|
|
65
|
+
`},{name:"pet_model","x-displayName":"The Pet Model",description:`<SchemaDefinition schemaRef="#/components/schemas/Pet" />
|
|
66
|
+
`},{name:"store_model","x-displayName":"The Order Model",description:`<SchemaDefinition schemaRef="#/components/schemas/Order" exampleRef="#/components/examples/Order" showReadOnly={true} showWriteOnly={true} />
|
|
67
|
+
`}],"x-tagGroups":[{name:"General",tags:["pet","store"]},{name:"User Management",tags:["user"]},{name:"Models",tags:["pet_model","store_model"]}],paths:{"/pet":{parameters:[{name:"Accept-Language",in:"header",description:"The language you prefer for messages. Supported values are en-AU, en-CA, en-GB, en-US",example:"en-US",required:!1,schema:{type:"string",default:"en-AU"}},{name:"cookieParam",in:"cookie",description:"Some cookie",required:!0,schema:{type:"integer",format:"int64"}}],post:{tags:["pet"],summary:"Add a new pet to the store",description:"Add new pet to the store inventory.",operationId:"addPet",responses:{405:{description:"Invalid input"}},security:[{petstore_auth:["write:pets","read:pets"]}],"x-codeSamples":[{lang:"C#",source:`PetStore.v1.Pet pet = new PetStore.v1.Pet();
|
|
68
|
+
pet.setApiKey("your api key");
|
|
69
|
+
pet.petType = PetStore.v1.Pet.TYPE_DOG;
|
|
70
|
+
pet.name = "Rex";
|
|
71
|
+
// set other fields
|
|
72
|
+
PetStoreResponse response = pet.create();
|
|
73
|
+
if (response.statusCode == HttpStatusCode.Created)
|
|
74
|
+
{
|
|
75
|
+
// Successfully created
|
|
76
|
+
}
|
|
77
|
+
else
|
|
78
|
+
{
|
|
79
|
+
// Something wrong -- check response for errors
|
|
80
|
+
Console.WriteLine(response.getRawResponse());
|
|
81
|
+
}
|
|
82
|
+
`},{lang:"PHP",source:`$form = new \\PetStore\\Entities\\Pet();
|
|
83
|
+
$form->setPetType("Dog");
|
|
84
|
+
$form->setName("Rex");
|
|
85
|
+
// set other fields
|
|
86
|
+
try {
|
|
87
|
+
$pet = $client->pets()->create($form);
|
|
88
|
+
} catch (UnprocessableEntityException $e) {
|
|
89
|
+
var_dump($e->getErrors());
|
|
90
|
+
}
|
|
91
|
+
`}],requestBody:{$ref:"#/components/requestBodies/Pet"}},put:{tags:["pet"],summary:"Update an existing pet",description:"",operationId:"updatePet",responses:{400:{description:"Invalid ID supplied"},404:{description:"Pet not found"},405:{description:"Validation exception"}},security:[{petstore_auth:["write:pets","read:pets"]}],"x-codeSamples":[{lang:"PHP",source:`$form = new \\PetStore\\Entities\\Pet();
|
|
92
|
+
$form->setPetId(1);
|
|
93
|
+
$form->setPetType("Dog");
|
|
94
|
+
$form->setName("Rex");
|
|
95
|
+
// set other fields
|
|
96
|
+
try {
|
|
97
|
+
$pet = $client->pets()->update($form);
|
|
98
|
+
} catch (UnprocessableEntityException $e) {
|
|
99
|
+
var_dump($e->getErrors());
|
|
100
|
+
}
|
|
101
|
+
`}],requestBody:{$ref:"#/components/requestBodies/Pet"}}},"/pet/{petId}":{get:{tags:["pet"],summary:"Find pet by ID",description:"Returns a single pet",operationId:"getPetById",parameters:[{name:"petId",in:"path",description:"ID of pet to return",required:!0,deprecated:!0,schema:{type:"integer",format:"int64"}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{$ref:"#/components/schemas/Pet"}},"application/xml":{schema:{$ref:"#/components/schemas/Pet"}}}},400:{description:"Invalid ID supplied"},404:{description:"Pet not found"}},security:[{api_key:[]}]},post:{tags:["pet"],summary:"Updates a pet in the store with form data",description:"",operationId:"updatePetWithForm",parameters:[{name:"petId",in:"path",description:"ID of pet that needs to be updated",required:!0,schema:{type:"integer",format:"int64"}}],responses:{405:{description:"Invalid input"}},security:[{petstore_auth:["write:pets","read:pets"]}],requestBody:{content:{"application/x-www-form-urlencoded":{schema:{type:"object",properties:{name:{description:"Updated name of the pet",type:"string"},status:{description:"Updated status of the pet",type:"string"}}}}}}},delete:{tags:["pet"],summary:"Deletes a pet",description:"",operationId:"deletePet",parameters:[{name:"api_key",in:"header",required:!1,schema:{type:"string"},example:"Bearer <TOKEN>"},{name:"petId",in:"path",description:"Pet id to delete",required:!0,schema:{type:"integer",format:"int64"}}],responses:{400:{description:"Invalid pet value"}},security:[{petstore_auth:["write:pets","read:pets"]}]}},"/pet/{petId}/uploadImage":{post:{tags:["pet"],summary:"uploads an image",description:"",operationId:"uploadFile",parameters:[{name:"petId",in:"path",description:"ID of pet to update",required:!0,schema:{type:"integer",format:"int64"}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{$ref:"#/components/schemas/ApiResponse"}}}}},security:[{petstore_auth:["write:pets","read:pets"]}],requestBody:{content:{"application/octet-stream":{schema:{type:"string",format:"binary"}}}}}},"/pet/{petId}/uploadImage/{data}":{post:{tags:["pet"],summary:"uploads an image",description:"",operationId:"uploadFile",parameters:[{name:"petId",in:"path",description:"ID of pet to update",required:!0,schema:{type:"integer",format:"int64"}},{name:"data",in:"path",description:"ID of pet to update",required:!0,schema:{type:"integer",format:"int64"}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{$ref:"#/components/schemas/ApiResponse"}}}}},security:[{petstore_auth:["write:pets","read:pets"]}],requestBody:{content:{"application/octet-stream":{schema:{type:"string",format:"binary"}}}}}},"/pet/findByStatus":{get:{tags:["pet"],summary:"Finds Pets by status",description:"Multiple status values can be provided with comma separated strings",operationId:"findPetsByStatus",parameters:[{name:"status",in:"query",description:"Status values that need to be considered for filter",required:!0,style:"form",schema:{type:"array",minItems:1,maxItems:3,items:{type:"string",enum:["available","pending","sold"],default:"available"}}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Pet"}}},"application/xml":{schema:{type:"array",items:{$ref:"#/components/schemas/Pet"}}}}},400:{description:"Invalid status value"}},security:[{petstore_auth:["write:pets","read:pets"]}]}},"/pet/findByTags":{get:{tags:["pet"],summary:"Finds Pets by tags",description:"Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.",operationId:"findPetsByTags",deprecated:!0,parameters:[{name:"tags",in:"query",description:"Tags to filter by",required:!0,style:"form",schema:{type:"array",items:{type:"string"}}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Pet"}}},"application/xml":{schema:{type:"array",items:{$ref:"#/components/schemas/Pet"}}}}},400:{description:"Invalid tag value"}},security:[{petstore_auth:["write:pets","read:pets"]}]}},"/store/inventory":{get:{tags:["store"],summary:"Returns pet inventories by status",description:"Returns a map of status codes to quantities",operationId:"getInventory",responses:{200:{description:"successful operation",content:{"application/json":{schema:{type:"object",additionalProperties:{type:"integer",format:"int32"}}}}}},security:[{api_key:[]}]}},"/store/order":{post:{tags:["store"],summary:"Place an order for a pet",description:"",operationId:"placeOrder",responses:{200:{description:"successful operation",content:{"application/json":{schema:{$ref:"#/components/schemas/Order"}},"application/xml":{schema:{$ref:"#/components/schemas/Order"}}}},400:{description:"Invalid Order",content:{"application/json":{example:{status:400,message:"Invalid Order"}}}}},requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/Order"}}},description:"order placed for purchasing the pet",required:!0}}},"/store/order/{orderId}":{get:{tags:["store"],summary:"Find purchase order by ID",description:"For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions",operationId:"getOrderById",parameters:[{name:"orderId",in:"path",description:"ID of pet that needs to be fetched",required:!0,schema:{type:"integer",format:"int64",minimum:1,maximum:5}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{$ref:"#/components/schemas/Order"}},"application/xml":{schema:{$ref:"#/components/schemas/Order"}}}},400:{description:"Invalid ID supplied"},404:{description:"Order not found"}}},delete:{tags:["store"],summary:"Delete purchase order by ID",description:"For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors",operationId:"deleteOrder",parameters:[{name:"orderId",in:"path",description:"ID of the order that needs to be deleted",required:!0,schema:{type:"string",minimum:1}}],responses:{400:{description:"Invalid ID supplied"},404:{description:"Order not found"}}}},"/store/subscribe":{post:{tags:["store"],summary:"Subscribe to the Store events",description:"Add subscription for a store events",requestBody:{content:{"application/json":{schema:{type:"object",properties:{callbackUrl:{type:"string",format:"uri",description:"This URL will be called by the server when the desired event will occur",example:"https://myserver.com/send/callback/here"},eventName:{type:"string",description:"Event name for the subscription",enum:["orderInProgress","orderShipped","orderDelivered"],example:"orderInProgress"}},required:["callbackUrl","eventName"]}}}},responses:{201:{description:"Subscription added",content:{"application/json":{schema:{type:"object",properties:{subscriptionId:{type:"string",example:"AAA-123-BBB-456"}}}}}}},callbacks:{orderInProgress:{"{$request.body#/callbackUrl}?event={$request.body#/eventName}":{servers:[{url:"//callback-url.path-level/v1",description:"Path level server 1"},{url:"//callback-url.path-level/v2",description:"Path level server 2"}],post:{summary:"Order in Progress (Summary)",description:'A callback triggered every time an Order is updated status to "inProgress" (Description)',externalDocs:{description:"Find out more",url:"https://more-details.com/demo"},requestBody:{content:{"application/json":{schema:{type:"object",properties:{orderId:{type:"string",example:"123"},timestamp:{type:"string",format:"date-time",example:"2018-10-19T16:46:45Z"},status:{type:"string",example:"inProgress"}}}},"application/xml":{schema:{type:"object",properties:{orderId:{type:"string",example:"123"}}},example:`<?xml version="1.0" encoding="UTF-8"?>
|
|
102
|
+
<root>
|
|
103
|
+
<orderId>123</orderId>
|
|
104
|
+
<status>inProgress</status>
|
|
105
|
+
<timestamp>2018-10-19T16:46:45Z</timestamp>
|
|
106
|
+
</root>
|
|
107
|
+
`}}},responses:{200:{description:"Callback successfully processed and no retries will be performed",content:{"application/json":{schema:{type:"object",properties:{someProp:{type:"string",example:"123"}}}}}},299:{description:"Response for cancelling subscription"},500:{description:"Callback processing failed and retries will be performed"}},"x-codeSamples":[{lang:"C#",source:`PetStore.v1.Pet pet = new PetStore.v1.Pet();
|
|
108
|
+
pet.setApiKey("your api key");
|
|
109
|
+
pet.petType = PetStore.v1.Pet.TYPE_DOG;
|
|
110
|
+
pet.name = "Rex";
|
|
111
|
+
// set other fields
|
|
112
|
+
PetStoreResponse response = pet.create();
|
|
113
|
+
if (response.statusCode == HttpStatusCode.Created)
|
|
114
|
+
{
|
|
115
|
+
// Successfully created
|
|
116
|
+
}
|
|
117
|
+
else
|
|
118
|
+
{
|
|
119
|
+
// Something wrong -- check response for errors
|
|
120
|
+
Console.WriteLine(response.getRawResponse());
|
|
121
|
+
}
|
|
122
|
+
`},{lang:"PHP",source:`$form = new \\PetStore\\Entities\\Pet();
|
|
123
|
+
$form->setPetType("Dog");
|
|
124
|
+
$form->setName("Rex");
|
|
125
|
+
// set other fields
|
|
126
|
+
try {
|
|
127
|
+
$pet = $client->pets()->create($form);
|
|
128
|
+
} catch (UnprocessableEntityException $e) {
|
|
129
|
+
var_dump($e->getErrors());
|
|
130
|
+
}
|
|
131
|
+
`}]},put:{description:"Order in Progress (Only Description)",servers:[{url:"//callback-url.operation-level/v1",description:"Operation level server 1 (Operation override)"},{url:"//callback-url.operation-level/v2",description:"Operation level server 2 (Operation override)"}],requestBody:{content:{"application/json":{schema:{type:"object",properties:{orderId:{type:"string",example:"123"},timestamp:{type:"string",format:"date-time",example:"2018-10-19T16:46:45Z"},status:{type:"string",example:"inProgress"}}}},"application/xml":{schema:{type:"object",properties:{orderId:{type:"string",example:"123"}}},example:`<?xml version="1.0" encoding="UTF-8"?>
|
|
132
|
+
<root>
|
|
133
|
+
<orderId>123</orderId>
|
|
134
|
+
<status>inProgress</status>
|
|
135
|
+
<timestamp>2018-10-19T16:46:45Z</timestamp>
|
|
136
|
+
</root>
|
|
137
|
+
`}}},responses:{200:{description:"Callback successfully processed and no retries will be performed",content:{"application/json":{schema:{type:"object",properties:{someProp:{type:"string",example:"123"}}}}}}}}}},orderShipped:{"{$request.body#/callbackUrl}?event={$request.body#/eventName}":{post:{description:`Very long description
|
|
138
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
|
|
139
|
+
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
|
|
140
|
+
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
141
|
+
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
|
|
142
|
+
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
|
|
143
|
+
culpa qui officia deserunt mollit anim id est laborum.
|
|
144
|
+
`,requestBody:{content:{"application/json":{schema:{type:"object",properties:{orderId:{type:"string",example:"123"},timestamp:{type:"string",format:"date-time",example:"2018-10-19T16:46:45Z"},estimatedDeliveryDate:{type:"string",format:"date-time",example:"2018-11-11T16:00:00Z"}}}}}},responses:{200:{description:"Callback successfully processed and no retries will be performed"}}}}},orderDelivered:{"http://notificationServer.com?url={$request.body#/callbackUrl}&event={$request.body#/eventName}":{post:{deprecated:!0,summary:"Order delivered",description:"A callback triggered every time an Order is delivered to the recipient",requestBody:{content:{"application/json":{schema:{type:"object",properties:{orderId:{type:"string",example:"123"},timestamp:{type:"string",format:"date-time",example:"2018-10-19T16:46:45Z"}}}}}},responses:{200:{description:"Callback successfully processed and no retries will be performed"}}}}}}}},"/user":{post:{tags:["user"],summary:"Create user",description:"This can only be done by the logged in user.",operationId:"createUser",responses:{default:{description:"successful operation"}},requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/User"}}},description:"Created user object",required:!0}}},"/user/{username}":{get:{tags:["user"],summary:"Get user by user name",description:"",operationId:"getUserByName",parameters:[{name:"username",in:"path",description:"The name that needs to be fetched. Use user1 for testing. ",required:!0,schema:{type:"string"}}],responses:{200:{description:"successful operation",content:{"application/json":{schema:{$ref:"#/components/schemas/User"}},"application/xml":{schema:{$ref:"#/components/schemas/User"}}}},400:{description:"Invalid username supplied"},404:{description:"User not found"}}},put:{tags:["user"],summary:"Updated user",description:"This can only be done by the logged in user.",operationId:"updateUser",parameters:[{name:"username",in:"path",description:"name that need to be deleted",required:!0,schema:{type:"string"}}],responses:{400:{description:"Invalid user supplied"},404:{description:"User not found"}},requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/User"}}},description:"Updated user object",required:!0}},delete:{tags:["user"],summary:"Delete user",description:"This can only be done by the logged in user.",operationId:"deleteUser",parameters:[{name:"username",in:"path",description:"The name that needs to be deleted",required:!0,schema:{type:"string"}}],responses:{400:{description:"Invalid username supplied"},404:{description:"User not found"}}}},"/user/createWithArray":{post:{tags:["user"],summary:"Creates list of users with given input array",description:"",operationId:"createUsersWithArrayInput",responses:{default:{description:"successful operation"}},requestBody:{$ref:"#/components/requestBodies/UserArray"}}},"/user/createWithList":{post:{tags:["user"],summary:"Creates list of users with given input array",description:"",operationId:"createUsersWithListInput",responses:{default:{description:"successful operation"}},requestBody:{$ref:"#/components/requestBodies/UserArray"}}},"/user/login":{get:{tags:["user"],summary:"Logs user into the system",description:"",operationId:"loginUser",parameters:[{name:"username",in:"query",description:"The user name for login",required:!0,schema:{type:"string"}},{name:"password",in:"query",description:"The password for login in clear text",required:!0,schema:{type:"string"}}],responses:{200:{description:"successful operation",headers:{"X-Rate-Limit":{description:"calls per hour allowed by the user",schema:{type:"integer",format:"int32"}},"X-Expires-After":{description:"date in UTC when token expires",schema:{type:"string",format:"date-time"}}},content:{"application/json":{schema:{type:"string"},examples:{response:{value:"OK"}}},"application/xml":{schema:{type:"string"},examples:{response:{value:"<Message> OK </Message>"}}},"text/plain":{examples:{response:{value:"OK"}}}}},400:{description:"Invalid username/password supplied"}}}},"/user/logout":{get:{tags:["user"],summary:"Logs out current logged in user session",description:"",operationId:"logoutUser",responses:{default:{description:"successful operation"}}}}},components:{schemas:{ApiResponse:{type:"object",properties:{code:{type:"integer",format:"int32"},type:{type:"string"},message:{type:"string"}}},Cat:{description:"A representation of a cat",allOf:[{$ref:"#/components/schemas/Pet"},{type:"object",properties:{huntingSkill:{type:"string",description:"The measured skill for hunting",default:"lazy",example:"adventurous",enum:["clueless","lazy","adventurous","aggressive"]}},required:["huntingSkill"]}]},Category:{type:"object",properties:{id:{description:"Category ID",allOf:[{$ref:"#/components/schemas/Id"}]},name:{description:"Category name",type:"string",minLength:1},sub:{description:"Test Sub Category",type:"object",properties:{prop1:{type:"string",description:"Dumb Property"}}}},xml:{name:"Category"}},Dog:{description:"A representation of a dog",allOf:[{$ref:"#/components/schemas/Pet"},{type:"object",properties:{packSize:{type:"integer",format:"int32",description:"The size of the pack the dog is from",default:1,minimum:1}},required:["packSize"]}]},HoneyBee:{description:"A representation of a honey bee",allOf:[{$ref:"#/components/schemas/Pet"},{type:"object",properties:{honeyPerDay:{type:"number",description:"Average amount of honey produced per day in ounces",example:3.14,multipleOf:.01}},required:["honeyPerDay"]}]},Id:{type:"integer",format:"int64",readOnly:!0},Order:{type:"object",properties:{id:{description:"Order ID",allOf:[{$ref:"#/components/schemas/Id"}]},petId:{description:"Pet ID",allOf:[{$ref:"#/components/schemas/Id"}]},quantity:{type:"integer",format:"int32",minimum:1,default:1},shipDate:{description:"Estimated ship date",type:"string",format:"date-time"},status:{type:"string",description:"Order Status",enum:["placed","approved","delivered"]},complete:{description:"Indicates whenever order was completed or not",type:"boolean",default:!1,readOnly:!0},requestId:{description:"Unique Request Id",type:"string",writeOnly:!0}},xml:{name:"Order"}},Pet:{type:"object",required:["name","photoUrls"],discriminator:{propertyName:"petType",mapping:{cat:"#/components/schemas/Cat",dog:"#/components/schemas/Dog",bee:"#/components/schemas/HoneyBee"}},properties:{id:{externalDocs:{description:"Find more info here",url:"https://example.com"},description:"Pet ID",allOf:[{$ref:"#/components/schemas/Id"}]},category:{description:"Categories this pet belongs to",allOf:[{$ref:"#/components/schemas/Category"}]},name:{description:"The name given to a pet",type:"string",example:"Guru"},photoUrls:{description:"The list of URL to a cute photos featuring pet",type:"array",maxItems:20,xml:{name:"photoUrl",wrapped:!0},items:{type:"string",format:"url"}},friend:{allOf:[{$ref:"#/components/schemas/Pet"}]},tags:{description:"Tags attached to the pet",type:"array",minItems:1,xml:{name:"tag",wrapped:!0},items:{$ref:"#/components/schemas/Tag"}},status:{type:"string",description:"Pet status in the store",enum:["available","pending","sold"]},petType:{description:"Type of a pet",type:"string"}},xml:{name:"Pet"}},Tag:{type:"object",properties:{id:{description:"Tag ID",allOf:[{$ref:"#/components/schemas/Id"}]},name:{description:"Tag name",type:"string",minLength:1}},xml:{name:"Tag"}},User:{type:"object",properties:{id:{$ref:"#/components/schemas/Id"},pet:{oneOf:[{$ref:"#/components/schemas/Pet"},{$ref:"#/components/schemas/Tag"}]},username:{description:"User supplied username",type:"string",minLength:4,example:"John78"},firstName:{description:"User first name",type:"string",minLength:1,example:"John"},lastName:{description:"User last name",type:"string",minLength:1,example:"Smith"},email:{description:"User email address",type:"string",format:"email",example:"john.smith@example.com"},password:{type:"string",description:"User password, MUST contain a mix of upper and lower case letters, as well as digits",format:"password",minLength:8,pattern:"/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/",example:"drowssaP123"},phone:{description:"User phone number in international format",type:"string",pattern:"/^\\+(?:[0-9]-?){6,14}[0-9]$/",example:"+1-202-555-0192"},userStatus:{description:"User status",type:"integer",format:"int32"}},xml:{name:"User"}}},requestBodies:{Pet:{content:{"application/json":{schema:{allOf:[{description:"My Pet",title:"Pettie"},{$ref:"#/components/schemas/Pet"}]}},"application/xml":{schema:{type:"object",properties:{name:{type:"string",description:"hooray"}}}}},description:"Pet object that needs to be added to the store",required:!0},UserArray:{content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/User"}}}},description:"List of user object",required:!0}},securitySchemes:{petstore_auth:{description:`Get access to data while protecting your account credentials.
|
|
145
|
+
OAuth2 is also a safer and more secure way to give you access.
|
|
146
|
+
`,type:"oauth2",flows:{clientCredentials:{tokenUrl:"http://petstore.swagger.io/api/oauth/dialog",scopes:{"write:pets":"modify pets in your account","read:pets":"read your pets"}}}},api_key:{description:"For this sample, you can use the api key `special-key` to test the authorization filters.\n",type:"apiKey",name:"api_key",in:"header"}},examples:{Order:{value:{quantity:1,shipDate:"2018-10-19T16:46:45Z",status:"placed",complete:!1}}}},"x-webhooks":{newPet:{post:{summary:"New pet",description:"Information about a new pet in the systems",operationId:"newPet",tags:["pet"],requestBody:{content:{"application/json":{schema:{$ref:"#/components/schemas/Pet"}}}},responses:{200:{description:"Return a 200 status to indicate that the data was received successfully"}}}}}},t={withImports:!0,withComments:!1,skipOptionalParameters:!1,withOAuth2Call:!0,spec:e},s={"POST http://petstore.swagger.io/v2/pet":{method:"post",url:"http://petstore.swagger.io/v2/pet",httpVersion:"HTTP/1.1",cookies:[{name:"cookieParam",value:"0"}],headers:[{name:"Content-Type",value:"application/json"},{name:"Accept-Language",value:"en-AU"},{name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"}],queryString:[],postData:{mimeType:"application/json",text:'{"category":{"name":"string","sub":{"prop1":"string"}},"name":"Guru","photoUrls":["string"],"friend":{},"tags":[{"name":"string"}],"status":"available","petType":"cat","huntingSkill":"adventurous"}',params:[],jsonObj:{category:{name:"string",sub:{prop1:"string"}},name:"Guru",photoUrls:["string"],friend:{},tags:[{name:"string"}],status:"available",petType:"cat",huntingSkill:"adventurous"}},headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[{method:"POST",url:"http://petstore.swagger.io/api/oauth/dialog",httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:"application/x-www-form-urlencoded"},{name:"Accept",value:"application/json"}],queryString:[],postData:{mimeType:"application/x-www-form-urlencoded",text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:"YOUR_CLIENT_ID"},{name:"client_secret",value:"YOUR_CLIENT_SECRET"},{name:"scope",value:"write:pets read:pets"}]},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}],pathParameters:{},serverVariables:{},queryObj:{},headersObj:{"Content-Type":"application/json","Accept-Language":"en-AU",Authorization:"Bearer <YOUR_TOKEN_HERE>"},cookiesObj:{cookieParam:"0"},allHeaders:{cookie:"cookieParam=0","Content-Type":"application/json","Accept-Language":"en-AU",Authorization:"Bearer <YOUR_TOKEN_HERE>"},uriObj:{protocol:"http:",slashes:!0,auth:null,host:"petstore.swagger.io",port:null,hostname:"petstore.swagger.io",hash:null,search:"",query:{},pathname:"/v2/pet",path:"/v2/pet",href:"http://petstore.swagger.io/v2/pet"},fullUrl:"http://petstore.swagger.io/v2/pet"},"POST http://petstore.swagger.io/v2/pet/{petId}/uploadImage/{data}":{method:"post",url:"http://petstore.swagger.io/v2/pet/{petId}/uploadImage/{data}",httpVersion:"HTTP/1.1",cookies:[],headers:[{name:"Content-Type",value:"application/octet-stream"},{name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"}],queryString:[],headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[{method:"POST",url:"http://petstore.swagger.io/api/oauth/dialog",httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:"application/x-www-form-urlencoded"},{name:"Accept",value:"application/json"}],queryString:[],postData:{mimeType:"application/x-www-form-urlencoded",text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:"YOUR_CLIENT_ID"},{name:"client_secret",value:"YOUR_CLIENT_SECRET"},{name:"scope",value:"write:pets read:pets"}]},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}],pathParameters:{petId:"",data:""},serverVariables:{},queryObj:{},headersObj:{"Content-Type":"application/octet-stream",Authorization:"Bearer <YOUR_TOKEN_HERE>"},cookiesObj:{},allHeaders:{"Content-Type":"application/octet-stream",Authorization:"Bearer <YOUR_TOKEN_HERE>"},uriObj:{protocol:"http:",slashes:!0,auth:null,host:"petstore.swagger.io",port:null,hostname:"petstore.swagger.io",hash:null,search:"",query:{},pathname:"/v2/pet/{petId}/uploadImage/{data}",path:"/v2/pet/{petId}/uploadImage/{data}",href:"http://petstore.swagger.io/v2/pet/{petId}/uploadImage/{data}"},fullUrl:"http://petstore.swagger.io/v2/pet/{petId}/uploadImage/{data}"},"PUT http://petstore.swagger.io/v2/pet":{method:"put",url:"http://petstore.swagger.io/v2/pet",httpVersion:"HTTP/1.1",cookies:[{name:"cookieParam",value:"0"}],headers:[{name:"Content-Type",value:"application/json"},{name:"Accept-Language",value:"en-AU"},{name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"}],queryString:[],postData:{mimeType:"application/json",text:'{"category":{"name":"string","sub":{"prop1":"string"}},"name":"Guru","photoUrls":["string"],"friend":{},"tags":[{"name":"string"}],"status":"available","petType":"cat","huntingSkill":"adventurous"}',params:[],jsonObj:{category:{name:"string",sub:{prop1:"string"}},name:"Guru",photoUrls:["string"],friend:{},tags:[{name:"string"}],status:"available",petType:"cat",huntingSkill:"adventurous"}},headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[{method:"POST",url:"http://petstore.swagger.io/api/oauth/dialog",httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:"application/x-www-form-urlencoded"},{name:"Accept",value:"application/json"}],queryString:[],postData:{mimeType:"application/x-www-form-urlencoded",text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:"YOUR_CLIENT_ID"},{name:"client_secret",value:"YOUR_CLIENT_SECRET"},{name:"scope",value:"write:pets read:pets"}]},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}],pathParameters:{},serverVariables:{},queryObj:{},headersObj:{"Content-Type":"application/json","Accept-Language":"en-AU",Authorization:"Bearer <YOUR_TOKEN_HERE>"},cookiesObj:{cookieParam:"0"},allHeaders:{cookie:"cookieParam=0","Content-Type":"application/json","Accept-Language":"en-AU",Authorization:"Bearer <YOUR_TOKEN_HERE>"},uriObj:{protocol:"http:",slashes:!0,auth:null,host:"petstore.swagger.io",port:null,hostname:"petstore.swagger.io",hash:null,search:"",query:{},pathname:"/v2/pet",path:"/v2/pet",href:"http://petstore.swagger.io/v2/pet"},fullUrl:"http://petstore.swagger.io/v2/pet"},"POST http://petstore.swagger.io/v2/pet/{petId}/uploadImage":{method:"post",url:"http://petstore.swagger.io/v2/pet/{petId}/uploadImage",httpVersion:"HTTP/1.1",cookies:[],headers:[{name:"Content-Type",value:"application/octet-stream"},{name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"}],queryString:[],headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[{method:"POST",url:"http://petstore.swagger.io/api/oauth/dialog",httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:"application/x-www-form-urlencoded"},{name:"Accept",value:"application/json"}],queryString:[],postData:{mimeType:"application/x-www-form-urlencoded",text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:"YOUR_CLIENT_ID"},{name:"client_secret",value:"YOUR_CLIENT_SECRET"},{name:"scope",value:"write:pets read:pets"}]},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}],pathParameters:{petId:""},serverVariables:{},queryObj:{},headersObj:{"Content-Type":"application/octet-stream",Authorization:"Bearer <YOUR_TOKEN_HERE>"},cookiesObj:{},allHeaders:{"Content-Type":"application/octet-stream",Authorization:"Bearer <YOUR_TOKEN_HERE>"},uriObj:{protocol:"http:",slashes:!0,auth:null,host:"petstore.swagger.io",port:null,hostname:"petstore.swagger.io",hash:null,search:"",query:{},pathname:"/v2/pet/{petId}/uploadImage",path:"/v2/pet/{petId}/uploadImage",href:"http://petstore.swagger.io/v2/pet/{petId}/uploadImage"},fullUrl:"http://petstore.swagger.io/v2/pet/{petId}/uploadImage"},"GET http://petstore.swagger.io/v2/pet/findByStatus/{id}":{method:"get",url:"http://petstore.swagger.io/v2/pet/findByStatus/{id}",httpVersion:"HTTP/1.1",cookies:[],headers:[{name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"}],queryString:[{name:"status",value:"available"}],headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[{method:"POST",url:"http://petstore.swagger.io/api/oauth/dialog",httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:"application/x-www-form-urlencoded"},{name:"Accept",value:"application/json"}],queryString:[],postData:{mimeType:"application/x-www-form-urlencoded",text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:"YOUR_CLIENT_ID"},{name:"client_secret",value:"YOUR_CLIENT_SECRET"},{name:"scope",value:"write:pets read:pets"}]},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}],pathParameters:{id:""},serverVariables:{},queryObj:{status:"available"},headersObj:{Authorization:"Bearer <YOUR_TOKEN_HERE>"},cookiesObj:{},allHeaders:{Authorization:"Bearer <YOUR_TOKEN_HERE>"},uriObj:{protocol:"http:",slashes:!0,auth:null,host:"petstore.swagger.io",port:null,hostname:"petstore.swagger.io",hash:null,search:"status=available",query:{status:"available"},pathname:"/v2/pet/findByStatus/{id}",path:"/v2/pet/findByStatus/{id}?status=available",href:"http://petstore.swagger.io/v2/pet/findByStatus/%7Bid%7D"},fullUrl:"http://petstore.swagger.io/v2/pet/findByStatus/{id}?status=available"},"POST https://{customerId}.saas-app.com:{port}/v2":{method:"post",url:"https://{customerId}.saas-app.com:{port}/v2/pet",httpVersion:"HTTP/1.1",cookies:[{name:"cookieParam",value:"0"}],headers:[{name:"Content-Type",value:"application/json"},{name:"Accept-Language",value:"en-AU"},{name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"}],queryString:[],postData:{mimeType:"application/json",text:"text",params:[],jsonObj:{category:{name:"string",sub:{prop1:"string"}},name:"Guru",photoUrls:["string"],friend:{},tags:[{name:"string"}],cvv_check:"string",status:"available",petType:"cat",huntingSkill:"adventurous"}},headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[],pathParameters:{},serverVariables:{customerId:"demo",port:"443"},queryObj:{},headersObj:{"Content-Type":"application/json","Accept-Language":"en-AU",Authorization:"Bearer <YOUR_TOKEN_HERE>"},cookiesObj:{cookieParam:"0"},allHeaders:{cookie:"cookieParam=0","Content-Type":"application/json","Accept-Language":"en-AU",Authorization:"Bearer <YOUR_TOKEN_HERE>"},uriObj:{protocol:"https:",slashes:!0,auth:null,host:"",port:null,hostname:"",hash:null,search:"",query:{},pathname:"{customerId}.saas-app.com:{port}/v2/pet",path:"{customerId}.saas-app.com:{port}/v2/pet",href:"https:///%7BcustomerId%7D.saas-app.com:%7Bport%7D/v2/pet"},fullUrl:"https://{customerId}.saas-app.com:{port}/v2/pet"},"POST http://petstore.swagger.io/login":{method:"post",url:"http://petstore.swagger.io/login",httpVersion:"HTTP/1.1",headers:[],queryString:[],postData:{mimeType:"application/json",text:"text",params:[],jsonObj:{}},basicAuth:{username:"usernamestring",password:"passwordstring"},headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[],pathParameters:{},queryObj:{},headersObj:{},cookiesObj:{},allHeaders:{},serverVariables:{},cookies:[{name:"cookieParam",value:"0"}],uriObj:{protocol:"https:",slashes:!0,auth:null,host:"",port:null,hostname:"",hash:null,search:"",query:{},pathname:"petstore.swagger.io/login",path:"petstore.swagger.io/login",href:"https://petstore.swagger.io/login"},fullUrl:"https://petstore.swagger.io/login"},"POST http://petstore.swagger.io/v2/uploadImage":{httpVersion:"HTTP/1.1",queryString:[],basicAuth:{username:"usernamestring",password:"passwordstring"},headersSize:0,bodySize:0,securityOAuth2ExtraCalls:[],pathParameters:{},queryObj:{},headersObj:{},cookiesObj:{},allHeaders:{},serverVariables:{},cookies:[{name:"cookieParam",value:"0"}],uriObj:{protocol:"https:",slashes:!0,auth:null,host:"",port:null,hostname:"",hash:null,search:"",query:{},pathname:"petstore.swagger.io/login",path:"petstore.swagger.io/login",href:"https://petstore.swagger.io/login"},fullUrl:"https://petstore.swagger.io/login",method:"POST",url:"http://petstore.swagger.io/v2/uploadImage",headers:[],postData:{mimeType:"multipart/form-data",params:[{name:"file",value:"pet_image.png"},{name:"description",value:"Pet photo"}]}}},r={withImports:!0,withComments:!1,skipOptionalParameters:!1,withOAuth2Call:!0,spec:{...e,servers:[{url:"https://{customerId}.saas-app.com:{port}/v2",variables:{customerId:{default:"demo",description:"Customer ID assigned by the service provider"},port:{enum:["443","8443"],default:"443"}}}]}};export{t as originalOptions,r as serverVariablesOptions,s as source};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CSharpCodeSampleConfig } from '../../../types';
|
|
2
|
-
import type { LanguageHandler } from '
|
|
1
|
+
import type { CSharpCodeSampleConfig } from '../../../types.js';
|
|
2
|
+
import type { LanguageHandler } from '../../index.js';
|
|
3
3
|
declare const handler: LanguageHandler<CSharpCodeSampleConfig['options']>;
|
|
4
4
|
export declare const info: {
|
|
5
5
|
key: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import{isObject as d}from"@redocly/theme";import{CodeBuilder as T}from"../../helpers/code-builder.js";import{HTTPSnippet as w}from"../../index.js";import{buildUrlExpression as S,printUrlVariablesDeclarations as E}from"../../helpers/code-helpers.js";import{isEmptyObject as A,normalizeMimeType as m}from"../../../../utils.js";import{capitalizeFirst as O}from"../../../generator.js";import{Lang as k}from"../../helpers/constants.js";import{MediaTypes as i}from"../../../../../constants.js";import{isLastInArray as H,isLastProperty as j}from"../../../../../utils/index.js";const x=function(s,c,{target:C,client:D}){const r=Object.assign({indent:" ",withWrapper:!0},c),t=new T({indentation:r.indent,variablesPrefix:r.variablesPrefix,capitalize:!0,lang:k.CSHARP}),b=L(s.method);if(r.withComments&&P(t),r.withWrapper&&(t.push("using System;"),t.push("using System.Net.Http;"),t.push("using System.Threading.Tasks;"),(h(i.JSON)||h(i.XML)||s.basicAuth)&&t.push("using System.Text;"),(h(i.URL_ENCODED)||s.securityOAuth2ExtraCalls?.length)&&t.push("using System.Collections.Generic;"),(h(i.JSON)||s.securityOAuth2ExtraCalls?.length)&&t.push("using System.Text.Json;"),l()&&t.push("using System.IO;"),(l()||s.basicAuth)&&t.push("using System.Net.Http.Headers;"),t.blank(),t.push("public class Program"),t.push("{"),t.push(1,"public static async Task Main()"),t.push(1,"{")),s.securityOAuth2ExtraCalls?.length){const e=new w(s.securityOAuth2ExtraCalls?.[0]).convert(C,D,{...r,withImports:!1,withWrapper:!1,withComments:!1,variablesPrefix:"oauth2"});t.push(e),t.push(2,"var oauth2Response = await oauth2Request.Content.ReadAsStringAsync();"),t.push(2,"JObject inputJObject = JObject.Parse(oauth2Response);"),t.push(2,'var accessToken = inputJObject["access_token"].ToString();'),t.blank()}const f=Object.keys(s.allHeaders).filter(e=>{switch(e.toLowerCase()){case"content-type":case"content-length":case"accept-encoding":return!1;default:return!0}});if(f.length?(t.push(2,"System.Net.Http.HttpClient client = new()"),t.push(2,"{"),t.push(3,"DefaultRequestHeaders ="),t.push(3,"{"),f.forEach(e=>{t.push(4,'{"%s", %s},',e,s.securityOAuth2ExtraCalls?.length?'"Bearer " + accessToken':`"${s.allHeaders[e]}"`)}),t.push(3,"}"),t.push(2,"};")):t.push(2,"System.Net.Http.HttpClient client = new();"),t.blank(),s.basicAuth){const{username:e,password:a}=s.basicAuth;t.push(2,`string base64String = Convert.ToBase64String(Encoding.ASCII.GetBytes("${e}:${a}"));`),t.push(2,'client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(@"Basic", base64String);'),t.blank()}if(s.postData)switch(m(s.postData.mimeType)){case i.URL_ENCODED:s.postData.params&&(t.blank(),t.push(2,"List<KeyValuePair<string, string>> postData = new List<KeyValuePair<string, string>>();"),s.postData.params.forEach(e=>{t.push(2,'postData.Add(new KeyValuePair<string, string>("%s", "%s"));',e.name,e.value)}),t.blank());break;case i.MULTIPART:s.postData.params&&(t.blank(),t.push(2,"MultipartFormDataContent postData = new MultipartFormDataContent();"),s.postData.params.forEach(e=>{t.push(2,'postData.Add(new StringContent("%s"), "%s");',e.value,e.name)}));break;case i.JSON:s.postData.jsonObj&&(t.push(2,"string json = JsonSerializer.Serialize(new"),t.push(2,"{"),u(s.postData.jsonObj,3),t.push(2,"});"),t.blank(),t.push(2,'using StringContent postData = new(json, Encoding.UTF8, "%s");',s.postData.mimeType));break;case i.XML:s.postData.text&&(s.postData.text.trim().split(`
|
|
2
|
+
`).forEach((e,a)=>{const n=(a===0?'string xml = @"':"")+e.replace(/"/g,'""');t.push(a===0?2:3,n)}),t.push(2,'";'),t.push(2,'using StringContent postData = new StringContent(xml, Encoding.UTF8, "%s");',s.postData.mimeType));break}else l()&&(t.push(2,"var ms = new MemoryStream();"),t.push(2,"var postData = new StreamContent(ms);"),t.push(2,'postData.Headers.ContentType = new MediaTypeHeaderValue("application/octet-stream");'));return E(s,t,3),t.push(2,"using HttpResponseMessage %s = await client.%sAsync(%s%s);",t.var("request"),b,S(s,t),r.withImports?M(s.method)?m(s.postData&&s.postData.mimeType)===i.URL_ENCODED?", new FormUrlEncodedContent(postData)":s.method==="delete"?"":s.postData&&s.postData.params||l()?", postData":", null":"":", new FormUrlEncodedContent(postData)"),r.withWrapper&&(t.push(2,"string response = await request.Content.ReadAsStringAsync();"),t.blank(),t.push(2,"Console.WriteLine(response);"),t.push(1,"}"),t.push("}")),t.join();function h(e){return s.postData&&m(s.postData.mimeType)===e}function l(){return s.headersObj&&s.headersObj["Content-Type"]===i.OCTET_STREAM}function g(e,a){e.forEach((n,p)=>{const o=!H(e,p);Array.isArray(n)?g(n,a+1):d(n)?(t.push(a+1,"new {"),u(n,a+2),t.push(a+1,"}%s",o?",":"")):t.push(a+1,'"%s"%s',n,o?",":"")}),t.push(a,"},")}function u(e,a){for(const[n,p]of Object.entries(e)){const o=!j(e,n);if(Array.isArray(p))t.push(a,"%s = new[] {",n),g(p,a);else if(d(p)){const y=A(p);t.push(a,"%s = new %s",n,y?"{},":"{"),y||(u(p,a+1),t.push(a,"}%s",o?",":""))}else t.push(a,'%s = "%s"%s',n,p,o?",":"")}}},V={key:"httpclient",title:"HttpClient",link:"https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient",description:".NET Standard HTTP Client"};var B=x;function P(s){s.push("// Requires >= .NET 5"),s.blank()}function L(s){return O(s.toLowerCase())}function M(s){return s&&["POST","PUT","DELETE","PATCH"].includes(s.toUpperCase())}export{B as default,V as info};
|
|
@@ -5,6 +5,6 @@ declare const _default: {
|
|
|
5
5
|
extname: string;
|
|
6
6
|
default: string;
|
|
7
7
|
};
|
|
8
|
-
httpclient: import("
|
|
8
|
+
httpclient: import("../../index.js").LanguageHandler<import("../../../types.js").BasicLanguageOptions | undefined>;
|
|
9
9
|
};
|
|
10
10
|
export default _default;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import t from"./httpclient.js";var p={info:{key:"csharp",title:"CSharp",extname:".cs",default:"httpclient"},httpclient:t};export{p as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { LanguageHandler } from '
|
|
2
|
-
import type { CSharpNewtonsoftCodeSampleConfig } from '../../../types';
|
|
1
|
+
import type { LanguageHandler } from '../../index.js';
|
|
2
|
+
import type { CSharpNewtonsoftCodeSampleConfig } from '../../../types.js';
|
|
3
3
|
declare const handler: LanguageHandler<CSharpNewtonsoftCodeSampleConfig['options']>;
|
|
4
4
|
export declare const info: {
|
|
5
5
|
key: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import f from"stringify-object";import{CodeBuilder as g}from"../../helpers/code-builder.js";import{HTTPSnippet as C}from"../../index.js";import{addIndentation as D,buildUrlExpression as y,printUrlVariablesDeclarations as T}from"../../helpers/code-helpers.js";import{normalizeMimeType as o}from"../../../../utils.js";import{capitalizeFirst as b}from"../../../generator.js";import{Lang as w}from"../../helpers/constants.js";import{MediaTypes as s}from"../../../../../constants.js";const S=function(t,h,{target:u,client:m}){const n=Object.assign({indent:" ",withWrapper:!0},h),e=new g({indentation:n.indent,variablesPrefix:n.variablesPrefix,capitalize:!0,lang:w.CSHARPNEWTONSOFT}),c=E(t.method);if(n.withComments&&O(e),n.withWrapper&&(e.push("using System;"),e.push("using System.Net.Http;"),e.push("using System.Threading.Tasks;"),(i(s.JSON)||i(s.XML)||t.basicAuth)&&e.push("using System.Text;"),(i(s.URL_ENCODED)||t.securityOAuth2ExtraCalls?.length)&&e.push("using System.Collections.Generic;"),(i(s.JSON)||t.securityOAuth2ExtraCalls?.length)&&e.push("using Newtonsoft.Json.Linq;"),p()&&e.push("using System.IO;"),(p()||t.basicAuth)&&e.push("using System.Net.Http.Headers;"),e.blank(),e.push("public class Program"),e.push("{"),e.push(1,"private readonly IHttpClientFactory _httpClientFactory;"),e.push(1,"public static async Task Main(string[] args)"),e.push(1,"{"),e.push(2,"var client = _httpClientFactory.CreateClient();")),t.securityOAuth2ExtraCalls?.length){const a=new C(t.securityOAuth2ExtraCalls?.[0]).convert(u,m,{...n,withImports:!1,withWrapper:!1,withComments:!1,variablesPrefix:"oauth2"});e.push(a),e.push(2,"var oauth2Response = await oauth2Request.Content.ReadAsStringAsync();"),e.push(2,"JObject inputJObject = JObject.Parse(oauth2Response);"),e.push(2,'var accessToken = inputJObject["access_token"].ToString();'),e.blank()}const l=Object.keys(t.allHeaders).filter(a=>{switch(a.toLowerCase()){case"content-type":case"content-length":case"accept-encoding":return!1;default:return!0}});if(l.length&&l.forEach(a=>{e.push(2,'client.DefaultRequestHeaders.Add("%s", %s);',a,t.securityOAuth2ExtraCalls?.length?'"Bearer " + accessToken':`"${t.allHeaders[a]}"`)}),t.basicAuth){const{username:a,password:r}=t.basicAuth;e.push(2,`var base64String = Convert.ToBase64String(Encoding.ASCII.GetBytes("${a}:${r}"));`),e.push(2,'client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(@"Basic", base64String);')}if(t.postData)switch(o(t.postData.mimeType)){case s.URL_ENCODED:t.postData.params&&(e.blank(),e.push(2,"List<KeyValuePair<string, string>> postData = new List<KeyValuePair<string, string>>();"),t.postData.params.forEach(a=>{e.push(2,'postData.Add(new KeyValuePair<string, string>("%s", "%s"));',a.name,a.value)}),e.blank());break;case s.MULTIPART:t.postData.params&&(e.blank(),e.push(2,"MultipartFormDataContent postData = new MultipartFormDataContent();"),t.postData.params.forEach(a=>{e.push(2,'postData.Add(new StringContent("%s"), "%s");',a.value,a.name)}));break;case s.JSON:t.postData.jsonObj&&(e.push(2,`JObject json = JObject.Parse(@"${D(f(t.postData.jsonObj,{indent:n.indent,inlineCharacterLimit:25}).replace(/"/g,'""'),{level:3,firstLine:!1})}");`),e.push(2,'var postData = new StringContent(json.ToString(), Encoding.UTF8, "%s");',t.postData.mimeType));break;case s.XML:t.postData.text&&(t.postData.text.trim().split(`
|
|
2
|
+
`).forEach((a,r)=>{const d=(r===0?'string xml = @"':"")+a.replace(/"/g,'""');e.push(r===0?3:4,d)}),e.push(2,'";'),e.push(2,'var postData = new StringContent(xml, Encoding.UTF8, "%s");',t.postData.mimeType));break}else p()&&(e.push(2,"var ms = new MemoryStream();"),e.push(2,"var postData = new StreamContent(ms);"),e.push(2,'postData.Headers.ContentType = new MediaTypeHeaderValue("application/octet-stream");'));return T(t,e,3),e.push(2,"var %s = await client.%sAsync(%s%s);",e.var("request"),c,y(t,e),n.withImports?A(t.method)?o(t.postData&&t.postData.mimeType)===s.URL_ENCODED?", new FormUrlEncodedContent(postData)":t.method==="delete"?"":t.postData&&t.postData.params||p()?", postData":", null":"":", new FormUrlEncodedContent(postData)"),n.withWrapper&&(e.push(2,"var response = await request.Content.ReadAsStringAsync();"),e.blank(),e.push(2,"Console.WriteLine(response);"),e.push(1,"}"),e.push("}")),e.join();function i(a){return t.postData&&o(t.postData.mimeType)===a}function p(){return t.headersObj&&t.headersObj["Content-Type"]===s.OCTET_STREAM}},M={key:"httpclient",title:"HttpClient",link:"https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient",description:".NET Standard HTTP Client"};var N=S;function O(t){t.push("/*"),t.push(" * Requires >= .NET 5"),t.push(" *"),t.push(' * Requires package "Newtonsoft.Json" >= 9.01'),t.push(" * See here for installation details:"),t.push(" * https://www.newtonsoft.com/json"),t.push(" */"),t.blank()}function E(t){return b(t.toLowerCase())}function A(t){return t&&["POST","PUT","DELETE","PATCH"].includes(t.toUpperCase())}export{N as default,M as info};
|
|
@@ -5,6 +5,6 @@ declare const _default: {
|
|
|
5
5
|
extname: string;
|
|
6
6
|
default: string;
|
|
7
7
|
};
|
|
8
|
-
httpclient: import("
|
|
8
|
+
httpclient: import("../../index.js").LanguageHandler<import("../../../types.js").BasicLanguageOptions | undefined>;
|
|
9
9
|
};
|
|
10
10
|
export default _default;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import t from"./httpclient.js";var o={info:{key:"csharpNewtonsoft",title:"CSharpNewtonsoft",extname:".cs",default:"httpclient"},httpclient:t};export{o as default};
|
|
@@ -5,6 +5,6 @@ declare const _default: {
|
|
|
5
5
|
extname: string;
|
|
6
6
|
default: string;
|
|
7
7
|
};
|
|
8
|
-
native: import("
|
|
8
|
+
native: import("../../index.js").LanguageHandler<import("../../../types.js").BasicLanguageOptions | undefined>;
|
|
9
9
|
};
|
|
10
10
|
export default _default;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import e from"./native.js";var o={info:{key:"go",title:"Go",extname:".go",default:"native"},native:e};export{o as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { LanguageHandler } from '
|
|
2
|
-
import type { GoCodeSampleConfig } from '../../../types';
|
|
1
|
+
import type { LanguageHandler } from '../../index.js';
|
|
2
|
+
import type { GoCodeSampleConfig } from '../../../types.js';
|
|
3
3
|
declare const handler: LanguageHandler<GoCodeSampleConfig['options']>;
|
|
4
4
|
export declare const info: {
|
|
5
5
|
key: string;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import{CodeBuilder as b}from"../../helpers/code-builder.js";import{HTTPSnippet as q}from"../../index.js";import{Lang as w}from"../../helpers/constants.js";import{buildUrlExpression as $,printUrlVariablesDeclarations as g}from"../../helpers/code-helpers.js";import{normalizeMimeType as m}from"../../../../utils.js";import{MediaTypes as p}from"../../../../../constants.js";const t=1;function l(s={},y){return m(s.mimeType)===y}const D=function(s,y,{target:c,client:d}){const i={capitalize:!0,showBoilerplate:!0,checkErrors:!0,printBody:!0,timeout:-1,indent:" ",...y},f=s.securityOAuth2ExtraCalls?.[0],n=i.checkErrors?"err":"_",h=s.method.toUpperCase(),e=new b({indentation:i.indent,variablesPrefix:i.variablesPrefix,capitalize:i.capitalize,lang:w.GO}),o=()=>{i.checkErrors&&e.push(t,"if err != nil {").push(t+1,"panic(err)").push(t,"}")};if(i.showBoilerplate&&(e.push("package main").blank().push("import (").push(t,'"fmt"'),i.timeout>0&&e.push(t,'"time"'),f&&e.push(t,'"encoding/json"'),l(s.postData,p.MULTIPART)&&(e.push(t,'"mime/multipart"'),e.push(t,'"io"'),e.push(t,'"bytes"')),(l(s.postData,p.URL_ENCODED)||l(s.securityOAuth2ExtraCalls?.[0]?.postData,p.URL_ENCODED))&&(e.push(t,'"net/url"'),e.push(t,'"strconv"')),(l(s.postData,p.JSON)||l(s.securityOAuth2ExtraCalls?.[0]?.postData,p.JSON))&&e.push(t,'"bytes"'),(s.postData&&!l(s.postData,p.JSON)||f)&&e.push(t,'"strings"'),e.push(t,'"net/http"'),i.printBody&&e.push(t,'"io/ioutil"'),e.push(")").blank().push("func main() {")),Object.keys(s.allHeaders).length&&Object.keys(s.allHeaders).forEach(r=>{s.allHeaders[r]=`"${s.allHeaders[r]}"`}),f){const r="oAuth2",a=i.checkErrors?`${n} := `:"",u=i.capitalize?"Res":"res",v=new q(f).convert(c,d,{...i,printBody:!1,variablesPrefix:r,showBoilerplate:!1});e.push(v).blank().push(t,`var ${r}${u}Body struct {`).push(t+1,"Access_token string").push(t,"}").push(t,`${a}json.NewDecoder(${r}${u}.Body).Decode(&${r}${u}Body)`).blank(),o(),s.allHeaders.Authorization=`"Bearer " + ${r}${u}Body.Access_token`}if(g(s,e,t),i.timeout>0&&(d=e.var("client"),e.push(t,"%s := http.Client{",d).push(t+1,"Timeout: time.Duration(%s * time.Second),",i.timeout).push(t,"}").blank()),e.push(t,`${e.var("reqUrl")} := ${$(s,e)}`),s.postData){let r;switch(m(s.postData.mimeType)){case p.URL_ENCODED:e.push(t,"%s := url.Values{}",e.var("data")),s.postData.params.forEach(a=>{e.push(t,'%s.Set("%s", "%s")',e.var("data"),a.name,a.value)}),e.push(t,'%s, %s := http.NewRequest("%s", %s, strings.NewReader(%s.Encode()))',e.var("req"),n,h,e.var("reqUrl"),e.var("data")),s.allHeaders["Content-Length"]=`strconv.Itoa(len(${e.var("data")}.Encode()))`;break;case p.JSON:r=JSON.stringify(s.postData.jsonObj,null,2).split(`
|
|
2
|
+
`).map(a=>i.indent+a).join(`
|
|
3
|
+
`).trim(),e.push(t,`var ${e.var("data")} = []byte(\`${r}\`)`),e.push(t,'%s, %s := http.NewRequest("%s", %s, bytes.NewBuffer(%s))',e.var("req"),n,h,e.var("reqUrl"),e.var("data"));break;case p.MULTIPART:e.push(t,"%s := &bytes.Buffer{}",e.var("data")).push(t,"writer := multipart.NewWriter(%s)",e.var("data")),s.postData.params.forEach(a=>{if(!a.fileName&&!a.contentType){e.push(t,'%s, _ := writer.CreateFormField("%s")',e.var(`${a.name}Fw`),a.name).push(t,'_, %s = io.Copy(%s, strings.NewReader("%s"))',n,e.var(`${a.name}Fw`),a.value),o();return}a.fileName&&(e.push(t,'%s, %s = writer.CreateFormFile("%s", "%s")',e.var(`${a.name}Fw`),n,a.name,a.fileName),o())}),e.push(t,"writer.Close()").blank().push(t,"%s := bytes.NewReader(%s.Bytes())",e.var("payload"),e.var("data")).push(t,'%s, %s := http.NewRequest("%s", %s, %s)',e.var("req"),n,h,e.var("reqUrl"),e.var("payload")),s.allHeaders["Content-Type"]="writer.FormDataContentType()";break;default:s.postData.text&&e.push(t,"%s := strings.NewReader(%s)",e.var("payload"),JSON.stringify(s.postData?.text)).push(t,'%s, %s := http.NewRequest("%s", %s, %s)',e.var("req"),n,h,e.var("reqUrl"),e.var("payload"))}}else e.push(t,'%s, %s := http.NewRequest("%s", %s, nil)',e.var("req"),n,h,e.var("reqUrl"));if(Object.getOwnPropertyNames(s.queryObj).length){e.blank().push(t,`${e.var("query")} := ${e.var("req")}.URL.Query()`);for(const r in s.queryObj){const a=s.queryObj[r],v=typeof a=="string"&&/^\[.*\]$/.test(a)?`\`${a}\``:`"${a}"`;e.push(t,`${e.var("query")}.Add("${r}", ${v})`)}e.push(t,`${e.var("req")}.URL.RawQuery = ${e.var("query")}.Encode()`).blank()}if(o(),s.basicAuth){const{username:r,password:a}=s.basicAuth;e.push(t,`%s.SetBasicAuth("${r}", "${a}")`,e.var("req"))}return Object.keys(s.allHeaders).length&&Object.keys(s.allHeaders).forEach(r=>{e.push(t,'%s.Header.Add("%s", %s)',e.var("req"),r,s.allHeaders[r])}),e.push(t,"%s, %s := %s.Do(%s)",e.var("res"),n,d,e.var("req")),o(),i.printBody&&(e.push(t,"defer %s.Body.Close()",e.var("res")).push(t,"%s, %s := ioutil.ReadAll(%s.Body)",e.var("body"),n,e.var("res")),o()),e.blank().push(t,"fmt.Println(%s)",e.var("res")),i.printBody&&e.push(t,"fmt.Println(string(%s))",e.var("body")),i.showBoilerplate&&e.push("}"),e.join()},A={key:"native",title:"NewRequest",link:"http://golang.org/pkg/net/http/#NewRequest",description:"Golang HTTP client request"};var T=D;export{T as default,A as info};
|