@redocly/openapi-docs 3.16.0 → 3.17.0-next.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/dist/redocly-openapi-docs.min.js +1805 -1807
- package/lib/constants.d.ts +0 -5
- package/lib/constants.js +1 -1
- package/lib/hooks/useRouter.d.ts +4 -0
- package/lib/services/code-samples/httpsnippet/targets/__mocks__/mock.d.ts +2 -550
- package/lib/services/history/helpers.d.ts +0 -1
- package/lib/services/history/helpers.js +1 -1
- package/lib/types/app.d.ts +0 -5
- package/lib/utils/index.d.ts +0 -1
- package/lib/utils/index.js +1 -1
- package/lib/utils/openapi.d.ts +1 -2
- package/package.json +15 -21
- package/lib/components/SchemaCatalogLink/tests/SchemaCatalogLink.test.d.ts +0 -1
- package/lib/components/SchemaCatalogLink/tests/SchemaCatalogLink.test.js +0 -1
- package/lib/utils/test-utils.d.ts +0 -1
- package/lib/utils/test-utils.js +0 -1
package/lib/constants.d.ts
CHANGED
|
@@ -10,11 +10,7 @@ export declare enum MediaTypes {
|
|
|
10
10
|
XML = "application/xml"
|
|
11
11
|
}
|
|
12
12
|
export declare const SECTION_ATTR = "data-section-id";
|
|
13
|
-
export declare const FIELD_ATTR = "data-field-id";
|
|
14
13
|
export declare const GROUP_DEPTH = 0;
|
|
15
|
-
export declare const LEGACY_REGEXP = "^ {0,3}<!-- ReDoc-Inject:\\s+?<({component}).*?/?>\\s+?-->\\s*$";
|
|
16
|
-
export declare const MDX_COMPONENT_REGEXP: string;
|
|
17
|
-
export declare const COMPONENT_REGEXP: string;
|
|
18
14
|
export declare const DEFAULT_TAG_SLUG = "other";
|
|
19
15
|
export declare const DEFAULT_WEBHOOKS_TAG_NAME = "webhooks";
|
|
20
16
|
export declare const LOADING_STATE: {
|
|
@@ -22,7 +18,6 @@ export declare const LOADING_STATE: {
|
|
|
22
18
|
LOADING: string;
|
|
23
19
|
LOADED: string;
|
|
24
20
|
};
|
|
25
|
-
export declare const REDOCLY_CONFIG_FILE = "redocly.yaml";
|
|
26
21
|
export declare const DISABLE_DEEP_LINK_IF_FIELDS_EXIST: string[];
|
|
27
22
|
export declare const SEARCH_LIMIT = 100;
|
|
28
23
|
export declare const HIGHLIGHTED_TEXT_MAX_LENGTH = 150;
|
package/lib/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var o;(function(t){t.ON_DEEP_LINK_CLICK="onDeepLinkClick",t.HOOKS="hooks"})(o||(o={}));var E;(function(t){t.OCTET_STREAM="application/octet-stream",t.MULTIPART="multipart/form-data",t.URL_ENCODED="application/x-www-form-urlencoded",t.JSON="application/json",t.XML="application/xml"})(E||(E={}));const
|
|
1
|
+
var o;(function(t){t.ON_DEEP_LINK_CLICK="onDeepLinkClick",t.HOOKS="hooks"})(o||(o={}));var E;(function(t){t.OCTET_STREAM="application/octet-stream",t.MULTIPART="multipart/form-data",t.URL_ENCODED="application/x-www-form-urlencoded",t.JSON="application/json",t.XML="application/xml"})(E||(E={}));const e="data-section-id",r=0,p="other",a="webhooks",_={NOT_LOADED:"NOT_LOADED",LOADING:"LOADING",LOADED:"LOADED"},n=["title"],D=100,L=150,c=["text","title","path","httpPath","parameters[]:name","parameters[]:description","parameters[]:place","parameters[]:path"];export{p as DEFAULT_TAG_SLUG,a as DEFAULT_WEBHOOKS_TAG_NAME,n as DISABLE_DEEP_LINK_IF_FIELDS_EXIST,r as GROUP_DEPTH,L as HIGHLIGHTED_TEXT_MAX_LENGTH,_ as LOADING_STATE,E as MediaTypes,c as SEARCH_INDEX_FIELDS,D as SEARCH_LIMIT,e as SECTION_ATTR,o as WindowReferenceOptions};
|
package/lib/hooks/useRouter.d.ts
CHANGED
|
@@ -3,6 +3,10 @@ import type { RouterType } from '../types/index.js';
|
|
|
3
3
|
interface RouterProps {
|
|
4
4
|
basename?: string;
|
|
5
5
|
location?: string;
|
|
6
|
+
future?: {
|
|
7
|
+
v7_startTransition: boolean;
|
|
8
|
+
v7_relativeSplatPath: boolean;
|
|
9
|
+
};
|
|
6
10
|
}
|
|
7
11
|
export declare const useRouter: (router: RouterType, basePath: string) => {
|
|
8
12
|
Router: ComponentType<{
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { SnippetRequest } from '../../index.js';
|
|
1
2
|
export declare const originalOptions: {
|
|
2
3
|
withImports: boolean;
|
|
3
4
|
withComments: boolean;
|
|
@@ -1501,556 +1502,7 @@ export declare const originalOptions: {
|
|
|
1501
1502
|
};
|
|
1502
1503
|
};
|
|
1503
1504
|
};
|
|
1504
|
-
export declare const source:
|
|
1505
|
-
"POST http://petstore.swagger.io/v2/pet": {
|
|
1506
|
-
method: string;
|
|
1507
|
-
url: string;
|
|
1508
|
-
httpVersion: string;
|
|
1509
|
-
cookies: {
|
|
1510
|
-
name: string;
|
|
1511
|
-
value: string;
|
|
1512
|
-
}[];
|
|
1513
|
-
headers: {
|
|
1514
|
-
name: string;
|
|
1515
|
-
value: string;
|
|
1516
|
-
}[];
|
|
1517
|
-
queryString: never[];
|
|
1518
|
-
postData: {
|
|
1519
|
-
mimeType: string;
|
|
1520
|
-
text: string;
|
|
1521
|
-
params: never[];
|
|
1522
|
-
jsonObj: {
|
|
1523
|
-
category: {
|
|
1524
|
-
name: string;
|
|
1525
|
-
sub: {
|
|
1526
|
-
prop1: string;
|
|
1527
|
-
};
|
|
1528
|
-
};
|
|
1529
|
-
name: string;
|
|
1530
|
-
photoUrls: string[];
|
|
1531
|
-
friend: {};
|
|
1532
|
-
tags: {
|
|
1533
|
-
name: string;
|
|
1534
|
-
}[];
|
|
1535
|
-
status: string;
|
|
1536
|
-
petType: string;
|
|
1537
|
-
huntingSkill: string;
|
|
1538
|
-
};
|
|
1539
|
-
};
|
|
1540
|
-
headersSize: number;
|
|
1541
|
-
bodySize: number;
|
|
1542
|
-
securityOAuth2ExtraCalls: {
|
|
1543
|
-
method: string;
|
|
1544
|
-
url: string;
|
|
1545
|
-
httpVersion: string;
|
|
1546
|
-
headers: {
|
|
1547
|
-
name: string;
|
|
1548
|
-
value: string;
|
|
1549
|
-
}[];
|
|
1550
|
-
queryString: never[];
|
|
1551
|
-
postData: {
|
|
1552
|
-
mimeType: string;
|
|
1553
|
-
text: string;
|
|
1554
|
-
params: {
|
|
1555
|
-
name: string;
|
|
1556
|
-
value: string;
|
|
1557
|
-
}[];
|
|
1558
|
-
};
|
|
1559
|
-
cookies: never[];
|
|
1560
|
-
headersSize: number;
|
|
1561
|
-
bodySize: number;
|
|
1562
|
-
securityOAuth2ExtraCalls: never[];
|
|
1563
|
-
}[];
|
|
1564
|
-
pathParameters: {};
|
|
1565
|
-
serverVariables: {};
|
|
1566
|
-
queryObj: {};
|
|
1567
|
-
headersObj: {
|
|
1568
|
-
'Content-Type': string;
|
|
1569
|
-
'Accept-Language': string;
|
|
1570
|
-
Authorization: string;
|
|
1571
|
-
};
|
|
1572
|
-
cookiesObj: {
|
|
1573
|
-
cookieParam: string;
|
|
1574
|
-
};
|
|
1575
|
-
allHeaders: {
|
|
1576
|
-
cookie: string;
|
|
1577
|
-
'Content-Type': string;
|
|
1578
|
-
'Accept-Language': string;
|
|
1579
|
-
Authorization: string;
|
|
1580
|
-
};
|
|
1581
|
-
uriObj: {
|
|
1582
|
-
protocol: string;
|
|
1583
|
-
slashes: boolean;
|
|
1584
|
-
auth: null;
|
|
1585
|
-
host: string;
|
|
1586
|
-
port: null;
|
|
1587
|
-
hostname: string;
|
|
1588
|
-
hash: null;
|
|
1589
|
-
search: string;
|
|
1590
|
-
query: {};
|
|
1591
|
-
pathname: string;
|
|
1592
|
-
path: string;
|
|
1593
|
-
href: string;
|
|
1594
|
-
};
|
|
1595
|
-
fullUrl: string;
|
|
1596
|
-
};
|
|
1597
|
-
"POST http://petstore.swagger.io/v2/pet/{petId}/uploadImage/{data}": {
|
|
1598
|
-
method: string;
|
|
1599
|
-
url: string;
|
|
1600
|
-
httpVersion: string;
|
|
1601
|
-
cookies: never[];
|
|
1602
|
-
headers: {
|
|
1603
|
-
name: string;
|
|
1604
|
-
value: string;
|
|
1605
|
-
}[];
|
|
1606
|
-
queryString: never[];
|
|
1607
|
-
headersSize: number;
|
|
1608
|
-
bodySize: number;
|
|
1609
|
-
securityOAuth2ExtraCalls: {
|
|
1610
|
-
method: string;
|
|
1611
|
-
url: string;
|
|
1612
|
-
httpVersion: string;
|
|
1613
|
-
headers: {
|
|
1614
|
-
name: string;
|
|
1615
|
-
value: string;
|
|
1616
|
-
}[];
|
|
1617
|
-
queryString: never[];
|
|
1618
|
-
postData: {
|
|
1619
|
-
mimeType: string;
|
|
1620
|
-
text: string;
|
|
1621
|
-
params: {
|
|
1622
|
-
name: string;
|
|
1623
|
-
value: string;
|
|
1624
|
-
}[];
|
|
1625
|
-
};
|
|
1626
|
-
cookies: never[];
|
|
1627
|
-
headersSize: number;
|
|
1628
|
-
bodySize: number;
|
|
1629
|
-
securityOAuth2ExtraCalls: never[];
|
|
1630
|
-
}[];
|
|
1631
|
-
pathParameters: {
|
|
1632
|
-
petId: string;
|
|
1633
|
-
data: string;
|
|
1634
|
-
};
|
|
1635
|
-
serverVariables: {};
|
|
1636
|
-
queryObj: {};
|
|
1637
|
-
headersObj: {
|
|
1638
|
-
'Content-Type': string;
|
|
1639
|
-
Authorization: string;
|
|
1640
|
-
};
|
|
1641
|
-
cookiesObj: {};
|
|
1642
|
-
allHeaders: {
|
|
1643
|
-
'Content-Type': string;
|
|
1644
|
-
Authorization: string;
|
|
1645
|
-
};
|
|
1646
|
-
uriObj: {
|
|
1647
|
-
protocol: string;
|
|
1648
|
-
slashes: boolean;
|
|
1649
|
-
auth: null;
|
|
1650
|
-
host: string;
|
|
1651
|
-
port: null;
|
|
1652
|
-
hostname: string;
|
|
1653
|
-
hash: null;
|
|
1654
|
-
search: string;
|
|
1655
|
-
query: {};
|
|
1656
|
-
pathname: string;
|
|
1657
|
-
path: string;
|
|
1658
|
-
href: string;
|
|
1659
|
-
};
|
|
1660
|
-
fullUrl: string;
|
|
1661
|
-
};
|
|
1662
|
-
"PUT http://petstore.swagger.io/v2/pet": {
|
|
1663
|
-
method: string;
|
|
1664
|
-
url: string;
|
|
1665
|
-
httpVersion: string;
|
|
1666
|
-
cookies: {
|
|
1667
|
-
name: string;
|
|
1668
|
-
value: string;
|
|
1669
|
-
}[];
|
|
1670
|
-
headers: {
|
|
1671
|
-
name: string;
|
|
1672
|
-
value: string;
|
|
1673
|
-
}[];
|
|
1674
|
-
queryString: never[];
|
|
1675
|
-
postData: {
|
|
1676
|
-
mimeType: string;
|
|
1677
|
-
text: string;
|
|
1678
|
-
params: never[];
|
|
1679
|
-
jsonObj: {
|
|
1680
|
-
category: {
|
|
1681
|
-
name: string;
|
|
1682
|
-
sub: {
|
|
1683
|
-
prop1: string;
|
|
1684
|
-
};
|
|
1685
|
-
};
|
|
1686
|
-
name: string;
|
|
1687
|
-
photoUrls: string[];
|
|
1688
|
-
friend: {};
|
|
1689
|
-
tags: {
|
|
1690
|
-
name: string;
|
|
1691
|
-
}[];
|
|
1692
|
-
status: string;
|
|
1693
|
-
petType: string;
|
|
1694
|
-
huntingSkill: string;
|
|
1695
|
-
};
|
|
1696
|
-
};
|
|
1697
|
-
headersSize: number;
|
|
1698
|
-
bodySize: number;
|
|
1699
|
-
securityOAuth2ExtraCalls: {
|
|
1700
|
-
method: string;
|
|
1701
|
-
url: string;
|
|
1702
|
-
httpVersion: string;
|
|
1703
|
-
headers: {
|
|
1704
|
-
name: string;
|
|
1705
|
-
value: string;
|
|
1706
|
-
}[];
|
|
1707
|
-
queryString: never[];
|
|
1708
|
-
postData: {
|
|
1709
|
-
mimeType: string;
|
|
1710
|
-
text: string;
|
|
1711
|
-
params: {
|
|
1712
|
-
name: string;
|
|
1713
|
-
value: string;
|
|
1714
|
-
}[];
|
|
1715
|
-
};
|
|
1716
|
-
cookies: never[];
|
|
1717
|
-
headersSize: number;
|
|
1718
|
-
bodySize: number;
|
|
1719
|
-
securityOAuth2ExtraCalls: never[];
|
|
1720
|
-
}[];
|
|
1721
|
-
pathParameters: {};
|
|
1722
|
-
serverVariables: {};
|
|
1723
|
-
queryObj: {};
|
|
1724
|
-
headersObj: {
|
|
1725
|
-
'Content-Type': string;
|
|
1726
|
-
'Accept-Language': string;
|
|
1727
|
-
Authorization: string;
|
|
1728
|
-
};
|
|
1729
|
-
cookiesObj: {
|
|
1730
|
-
cookieParam: string;
|
|
1731
|
-
};
|
|
1732
|
-
allHeaders: {
|
|
1733
|
-
cookie: string;
|
|
1734
|
-
'Content-Type': string;
|
|
1735
|
-
'Accept-Language': string;
|
|
1736
|
-
Authorization: string;
|
|
1737
|
-
};
|
|
1738
|
-
uriObj: {
|
|
1739
|
-
protocol: string;
|
|
1740
|
-
slashes: boolean;
|
|
1741
|
-
auth: null;
|
|
1742
|
-
host: string;
|
|
1743
|
-
port: null;
|
|
1744
|
-
hostname: string;
|
|
1745
|
-
hash: null;
|
|
1746
|
-
search: string;
|
|
1747
|
-
query: {};
|
|
1748
|
-
pathname: string;
|
|
1749
|
-
path: string;
|
|
1750
|
-
href: string;
|
|
1751
|
-
};
|
|
1752
|
-
fullUrl: string;
|
|
1753
|
-
};
|
|
1754
|
-
"POST http://petstore.swagger.io/v2/pet/{petId}/uploadImage": {
|
|
1755
|
-
method: string;
|
|
1756
|
-
url: string;
|
|
1757
|
-
httpVersion: string;
|
|
1758
|
-
cookies: never[];
|
|
1759
|
-
headers: {
|
|
1760
|
-
name: string;
|
|
1761
|
-
value: string;
|
|
1762
|
-
}[];
|
|
1763
|
-
queryString: never[];
|
|
1764
|
-
headersSize: number;
|
|
1765
|
-
bodySize: number;
|
|
1766
|
-
securityOAuth2ExtraCalls: {
|
|
1767
|
-
method: string;
|
|
1768
|
-
url: string;
|
|
1769
|
-
httpVersion: string;
|
|
1770
|
-
headers: {
|
|
1771
|
-
name: string;
|
|
1772
|
-
value: string;
|
|
1773
|
-
}[];
|
|
1774
|
-
queryString: never[];
|
|
1775
|
-
postData: {
|
|
1776
|
-
mimeType: string;
|
|
1777
|
-
text: string;
|
|
1778
|
-
params: {
|
|
1779
|
-
name: string;
|
|
1780
|
-
value: string;
|
|
1781
|
-
}[];
|
|
1782
|
-
};
|
|
1783
|
-
cookies: never[];
|
|
1784
|
-
headersSize: number;
|
|
1785
|
-
bodySize: number;
|
|
1786
|
-
securityOAuth2ExtraCalls: never[];
|
|
1787
|
-
}[];
|
|
1788
|
-
pathParameters: {
|
|
1789
|
-
petId: string;
|
|
1790
|
-
};
|
|
1791
|
-
serverVariables: {};
|
|
1792
|
-
queryObj: {};
|
|
1793
|
-
headersObj: {
|
|
1794
|
-
'Content-Type': string;
|
|
1795
|
-
Authorization: string;
|
|
1796
|
-
};
|
|
1797
|
-
cookiesObj: {};
|
|
1798
|
-
allHeaders: {
|
|
1799
|
-
'Content-Type': string;
|
|
1800
|
-
Authorization: string;
|
|
1801
|
-
};
|
|
1802
|
-
uriObj: {
|
|
1803
|
-
protocol: string;
|
|
1804
|
-
slashes: boolean;
|
|
1805
|
-
auth: null;
|
|
1806
|
-
host: string;
|
|
1807
|
-
port: null;
|
|
1808
|
-
hostname: string;
|
|
1809
|
-
hash: null;
|
|
1810
|
-
search: string;
|
|
1811
|
-
query: {};
|
|
1812
|
-
pathname: string;
|
|
1813
|
-
path: string;
|
|
1814
|
-
href: string;
|
|
1815
|
-
};
|
|
1816
|
-
fullUrl: string;
|
|
1817
|
-
};
|
|
1818
|
-
"GET http://petstore.swagger.io/v2/pet/findByStatus/{id}": {
|
|
1819
|
-
method: string;
|
|
1820
|
-
url: string;
|
|
1821
|
-
httpVersion: string;
|
|
1822
|
-
cookies: never[];
|
|
1823
|
-
headers: {
|
|
1824
|
-
name: string;
|
|
1825
|
-
value: string;
|
|
1826
|
-
}[];
|
|
1827
|
-
queryString: {
|
|
1828
|
-
name: string;
|
|
1829
|
-
value: string;
|
|
1830
|
-
}[];
|
|
1831
|
-
headersSize: number;
|
|
1832
|
-
bodySize: number;
|
|
1833
|
-
securityOAuth2ExtraCalls: {
|
|
1834
|
-
method: string;
|
|
1835
|
-
url: string;
|
|
1836
|
-
httpVersion: string;
|
|
1837
|
-
headers: {
|
|
1838
|
-
name: string;
|
|
1839
|
-
value: string;
|
|
1840
|
-
}[];
|
|
1841
|
-
queryString: never[];
|
|
1842
|
-
postData: {
|
|
1843
|
-
mimeType: string;
|
|
1844
|
-
text: string;
|
|
1845
|
-
params: {
|
|
1846
|
-
name: string;
|
|
1847
|
-
value: string;
|
|
1848
|
-
}[];
|
|
1849
|
-
};
|
|
1850
|
-
cookies: never[];
|
|
1851
|
-
headersSize: number;
|
|
1852
|
-
bodySize: number;
|
|
1853
|
-
securityOAuth2ExtraCalls: never[];
|
|
1854
|
-
}[];
|
|
1855
|
-
pathParameters: {
|
|
1856
|
-
id: string;
|
|
1857
|
-
};
|
|
1858
|
-
serverVariables: {};
|
|
1859
|
-
queryObj: {
|
|
1860
|
-
status: string;
|
|
1861
|
-
};
|
|
1862
|
-
headersObj: {
|
|
1863
|
-
Authorization: string;
|
|
1864
|
-
};
|
|
1865
|
-
cookiesObj: {};
|
|
1866
|
-
allHeaders: {
|
|
1867
|
-
Authorization: string;
|
|
1868
|
-
};
|
|
1869
|
-
uriObj: {
|
|
1870
|
-
protocol: string;
|
|
1871
|
-
slashes: boolean;
|
|
1872
|
-
auth: null;
|
|
1873
|
-
host: string;
|
|
1874
|
-
port: null;
|
|
1875
|
-
hostname: string;
|
|
1876
|
-
hash: null;
|
|
1877
|
-
search: string;
|
|
1878
|
-
query: {
|
|
1879
|
-
status: string;
|
|
1880
|
-
};
|
|
1881
|
-
pathname: string;
|
|
1882
|
-
path: string;
|
|
1883
|
-
href: string;
|
|
1884
|
-
};
|
|
1885
|
-
fullUrl: string;
|
|
1886
|
-
};
|
|
1887
|
-
"POST https://{customerId}.saas-app.com:{port}/v2": {
|
|
1888
|
-
method: string;
|
|
1889
|
-
url: string;
|
|
1890
|
-
httpVersion: string;
|
|
1891
|
-
cookies: {
|
|
1892
|
-
name: string;
|
|
1893
|
-
value: string;
|
|
1894
|
-
}[];
|
|
1895
|
-
headers: {
|
|
1896
|
-
name: string;
|
|
1897
|
-
value: string;
|
|
1898
|
-
}[];
|
|
1899
|
-
queryString: never[];
|
|
1900
|
-
postData: {
|
|
1901
|
-
mimeType: string;
|
|
1902
|
-
text: string;
|
|
1903
|
-
params: never[];
|
|
1904
|
-
jsonObj: {
|
|
1905
|
-
category: {
|
|
1906
|
-
name: string;
|
|
1907
|
-
sub: {
|
|
1908
|
-
prop1: string;
|
|
1909
|
-
};
|
|
1910
|
-
};
|
|
1911
|
-
name: string;
|
|
1912
|
-
photoUrls: string[];
|
|
1913
|
-
friend: {};
|
|
1914
|
-
tags: {
|
|
1915
|
-
name: string;
|
|
1916
|
-
}[];
|
|
1917
|
-
cvv_check: string;
|
|
1918
|
-
status: string;
|
|
1919
|
-
petType: string;
|
|
1920
|
-
huntingSkill: string;
|
|
1921
|
-
};
|
|
1922
|
-
};
|
|
1923
|
-
headersSize: number;
|
|
1924
|
-
bodySize: number;
|
|
1925
|
-
securityOAuth2ExtraCalls: never[];
|
|
1926
|
-
pathParameters: {};
|
|
1927
|
-
serverVariables: {
|
|
1928
|
-
customerId: string;
|
|
1929
|
-
port: string;
|
|
1930
|
-
};
|
|
1931
|
-
queryObj: {};
|
|
1932
|
-
headersObj: {
|
|
1933
|
-
'Content-Type': string;
|
|
1934
|
-
'Accept-Language': string;
|
|
1935
|
-
Authorization: string;
|
|
1936
|
-
};
|
|
1937
|
-
cookiesObj: {
|
|
1938
|
-
cookieParam: string;
|
|
1939
|
-
};
|
|
1940
|
-
allHeaders: {
|
|
1941
|
-
cookie: string;
|
|
1942
|
-
'Content-Type': string;
|
|
1943
|
-
'Accept-Language': string;
|
|
1944
|
-
Authorization: string;
|
|
1945
|
-
};
|
|
1946
|
-
uriObj: {
|
|
1947
|
-
protocol: string;
|
|
1948
|
-
slashes: boolean;
|
|
1949
|
-
auth: null;
|
|
1950
|
-
host: string;
|
|
1951
|
-
port: null;
|
|
1952
|
-
hostname: string;
|
|
1953
|
-
hash: null;
|
|
1954
|
-
search: string;
|
|
1955
|
-
query: {};
|
|
1956
|
-
pathname: string;
|
|
1957
|
-
path: string;
|
|
1958
|
-
href: string;
|
|
1959
|
-
};
|
|
1960
|
-
fullUrl: string;
|
|
1961
|
-
};
|
|
1962
|
-
"POST http://petstore.swagger.io/login": {
|
|
1963
|
-
method: string;
|
|
1964
|
-
url: string;
|
|
1965
|
-
httpVersion: string;
|
|
1966
|
-
headers: never[];
|
|
1967
|
-
queryString: never[];
|
|
1968
|
-
postData: {
|
|
1969
|
-
mimeType: string;
|
|
1970
|
-
text: string;
|
|
1971
|
-
params: never[];
|
|
1972
|
-
jsonObj: {};
|
|
1973
|
-
};
|
|
1974
|
-
basicAuth: {
|
|
1975
|
-
username: string;
|
|
1976
|
-
password: string;
|
|
1977
|
-
};
|
|
1978
|
-
headersSize: number;
|
|
1979
|
-
bodySize: number;
|
|
1980
|
-
securityOAuth2ExtraCalls: never[];
|
|
1981
|
-
pathParameters: {};
|
|
1982
|
-
queryObj: {};
|
|
1983
|
-
headersObj: {};
|
|
1984
|
-
cookiesObj: {};
|
|
1985
|
-
allHeaders: {};
|
|
1986
|
-
serverVariables: {};
|
|
1987
|
-
cookies: {
|
|
1988
|
-
name: string;
|
|
1989
|
-
value: string;
|
|
1990
|
-
}[];
|
|
1991
|
-
uriObj: {
|
|
1992
|
-
protocol: string;
|
|
1993
|
-
slashes: boolean;
|
|
1994
|
-
auth: null;
|
|
1995
|
-
host: string;
|
|
1996
|
-
port: null;
|
|
1997
|
-
hostname: string;
|
|
1998
|
-
hash: null;
|
|
1999
|
-
search: string;
|
|
2000
|
-
query: {};
|
|
2001
|
-
pathname: string;
|
|
2002
|
-
path: string;
|
|
2003
|
-
href: string;
|
|
2004
|
-
};
|
|
2005
|
-
fullUrl: string;
|
|
2006
|
-
};
|
|
2007
|
-
"POST http://petstore.swagger.io/v2/uploadImage": {
|
|
2008
|
-
httpVersion: string;
|
|
2009
|
-
queryString: never[];
|
|
2010
|
-
basicAuth: {
|
|
2011
|
-
username: string;
|
|
2012
|
-
password: string;
|
|
2013
|
-
};
|
|
2014
|
-
headersSize: number;
|
|
2015
|
-
bodySize: number;
|
|
2016
|
-
securityOAuth2ExtraCalls: never[];
|
|
2017
|
-
pathParameters: {};
|
|
2018
|
-
queryObj: {};
|
|
2019
|
-
headersObj: {};
|
|
2020
|
-
cookiesObj: {};
|
|
2021
|
-
allHeaders: {};
|
|
2022
|
-
serverVariables: {};
|
|
2023
|
-
cookies: {
|
|
2024
|
-
name: string;
|
|
2025
|
-
value: string;
|
|
2026
|
-
}[];
|
|
2027
|
-
uriObj: {
|
|
2028
|
-
protocol: string;
|
|
2029
|
-
slashes: boolean;
|
|
2030
|
-
auth: null;
|
|
2031
|
-
host: string;
|
|
2032
|
-
port: null;
|
|
2033
|
-
hostname: string;
|
|
2034
|
-
hash: null;
|
|
2035
|
-
search: string;
|
|
2036
|
-
query: {};
|
|
2037
|
-
pathname: string;
|
|
2038
|
-
path: string;
|
|
2039
|
-
href: string;
|
|
2040
|
-
};
|
|
2041
|
-
fullUrl: string;
|
|
2042
|
-
method: string;
|
|
2043
|
-
url: string;
|
|
2044
|
-
headers: never[];
|
|
2045
|
-
postData: {
|
|
2046
|
-
mimeType: string;
|
|
2047
|
-
params: {
|
|
2048
|
-
name: string;
|
|
2049
|
-
value: string;
|
|
2050
|
-
}[];
|
|
2051
|
-
};
|
|
2052
|
-
};
|
|
2053
|
-
};
|
|
1505
|
+
export declare const source: Record<string, SnippetRequest>;
|
|
2054
1506
|
export declare const serverVariablesOptions: {
|
|
2055
1507
|
withImports: boolean;
|
|
2056
1508
|
withComments: boolean;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { FieldModel } from '../../models/index.js';
|
|
2
|
-
export declare function isSameHash(a: string, b: string): boolean;
|
|
3
2
|
export declare function constructFieldDeepFragment(field: FieldModel, activeMimeName?: string): string;
|
|
4
3
|
export declare function joinWithSeparator(base?: string, path?: string, sep?: string): string;
|
|
5
4
|
export declare function makeDeepLink(operationId: string, suffix: string): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{encodeBackSlashes as o,queryString as s}from"../../utils/index.js";import{getActiveMediaType as r}from"../../models/mediaContent.js";function
|
|
1
|
+
import{encodeBackSlashes as o,queryString as s}from"../../utils/index.js";import{getActiveMediaType as r}from"../../models/mediaContent.js";function p(e,n){if(!e.in){if(e.deps.type==="request"&&e.deps.operation?.requestBody?.content?.mediaTypes)return e.deps.operation?.requestBody?.content?.mediaTypes.length>1?e.deps.operation?.requestBody?.content&&r(e.deps.operation.requestBody.content,n).name:void 0;if(e.deps.type==="response"&&e.deps.response?.content?.mediaTypes)return e.deps.response?.content?.mediaTypes.length>1?e.deps.response?.content&&r(e.deps.response.content,n).name:void 0}}function d(e,n){if(!e)return"";const t={t:e.deps.type,in:e.in||e.deps.in,c:e.deps.type==="response"?e.deps.response?.code:void 0,cb:e.deps.operation?.isCallback?e.deps.operation.callbackId:void 0,ct:p(e,n),path:e.fieldFullPath};return s.stringify(t,{encode:!1,sort:!1})}function c(e="",n="",t="/"){return e.endsWith(t)&&e!==t&&(e=e.slice(0,-t.length)),n.startsWith(t)&&(n=n.slice(t.length)),!e||!n||e===t?e+n:e+t+n}function y(e,n){return e=o(e),(`/${e}#`+c(e,n)).toLowerCase()}export{d as constructFieldDeepFragment,c as joinWithSeparator,y as makeDeepLink};
|
package/lib/types/app.d.ts
CHANGED
package/lib/utils/index.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ export * from './session-storage.js';
|
|
|
12
12
|
export * from './local-storage.js';
|
|
13
13
|
export * from './parameters.js';
|
|
14
14
|
export * from './string.js';
|
|
15
|
-
export * from './test-utils.js';
|
|
16
15
|
export * from './compose.js';
|
|
17
16
|
export * from './saveTextBeforeHeading.js';
|
|
18
17
|
export * from './path.js';
|
package/lib/utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export*from"./JsonPointer.js";export*from"./openapi.js";export*from"./helpers.js";export*from"./dom.js";export*from"./debug.js";export*from"./sort.js";export*from"./argValuesHelpers.js";export*from"./theme-helpers.js";export*from"./debounce.js";export*from"./security-details.js";export*from"./session-storage.js";export*from"./local-storage.js";export*from"./parameters.js";export*from"./string.js";export*from"./
|
|
1
|
+
export*from"./JsonPointer.js";export*from"./openapi.js";export*from"./helpers.js";export*from"./dom.js";export*from"./debug.js";export*from"./sort.js";export*from"./argValuesHelpers.js";export*from"./theme-helpers.js";export*from"./debounce.js";export*from"./security-details.js";export*from"./session-storage.js";export*from"./local-storage.js";export*from"./parameters.js";export*from"./string.js";export*from"./compose.js";export*from"./saveTextBeforeHeading.js";export*from"./path.js";export*from"./queryString.js";export*from"./isMobile.js";export*from"./replaceVariables.js";export*from"./areArraysEqual.js";export*from"./hasNestedFields.js";export*from"./configure-helpers.js";export*from"./telemetry.js";
|
package/lib/utils/openapi.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { OpenAPIEncoding, OpenAPIMediaType, OpenAPIParameterStyle, OpenAPIRequestBody, OpenAPIResponse, OpenAPISchema, OpenAPIServer, Referenced } from '../types/index.js';
|
|
1
|
+
import type { OpenAPIEncoding, OpenAPIMediaType, OpenAPIParameterStyle, OpenAPIRequestBody, OpenAPIResponse, OpenAPISchema, OpenAPIServer, Referenced, OpenAPIParameter } from '../types/index.js';
|
|
2
2
|
import type { ExtendedOpenAPIOperation, OpenAPIParser } from '../services/index.js';
|
|
3
3
|
import type { FieldModel, GroupModel } from '../models/index.js';
|
|
4
|
-
import { OpenAPIParameter } from '../types/index.js';
|
|
5
4
|
export declare function isStatusCode(statusCode: string): boolean;
|
|
6
5
|
export declare function getStatusCodeType(statusCode: string | number, defaultAsError?: boolean): string;
|
|
7
6
|
export declare function isOperationName(key: string): boolean;
|