You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'The permissions granted by this access token.\n\n- `all` - Access all actions in the test environment.\n- `crypto_compare` - Call CryptoCompare API.',
1710
1717
},
1711
-
description:
1712
-
'The permissions granted by this access token.\n\n- `all` - Access all actions in the test environment.\n- `crypto_compare` - Call CryptoCompare API.',
1713
-
},
1714
-
],
1715
-
responses: {
1716
-
200: {
1717
-
description: 'OK',
1718
-
content: {
1719
-
'application/json': {
1720
-
schema: {
1721
-
type: 'string',
1718
+
],
1719
+
responses: {
1720
+
200: {
1721
+
description: 'OK',
1722
+
content: {
1723
+
'application/json': {
1724
+
schema: {
1725
+
type: 'string',
1726
+
},
1722
1727
},
1723
1728
},
1724
1729
},
1725
1730
},
1726
1731
},
1727
1732
},
1728
1733
},
1734
+
components: {
1735
+
schemas: {},
1736
+
},
1729
1737
},
1730
-
components: {
1731
-
schemas: {},
1738
+
);
1739
+
1740
+
constROUTE_WITH_INLINE_PRESERVE_LINE_BREAKS=`
1741
+
import * as t from 'io-ts';
1742
+
import * as h from '@api-ts/io-ts-http';
1743
+
1744
+
/**
1745
+
* A route with inline preserveLineBreaks tag
1746
+
*
1747
+
* @operationId api.v1.inline
1748
+
* @tag Test Routes
1749
+
*/
1750
+
export const route = h.httpRoute({
1751
+
path: '/inline',
1752
+
method: 'GET',
1753
+
request: h.httpRequest({
1754
+
query: {
1755
+
/**
1756
+
* @preserveLineBreaks This tag is inline with other text
1757
+
* This is a long description that
1758
+
* spans multiple lines in the source.
1759
+
*/
1760
+
field1: t.string,
1761
+
},
1762
+
}),
1763
+
response: {
1764
+
200: t.string
1732
1765
},
1733
1766
});
1767
+
`;
1768
+
1769
+
testCase(
1770
+
'route with inline @preserveLineBreaks tag',
1771
+
ROUTE_WITH_INLINE_PRESERVE_LINE_BREAKS,
1772
+
{
1773
+
openapi: '3.0.3',
1774
+
info: {
1775
+
title: 'Test',
1776
+
version: '1.0.0',
1777
+
},
1778
+
paths: {
1779
+
'/inline': {
1780
+
get: {
1781
+
summary: 'A route with inline preserveLineBreaks tag',
1782
+
operationId: 'api.v1.inline',
1783
+
tags: ['Test Routes'],
1784
+
parameters: [
1785
+
{
1786
+
name: 'field1',
1787
+
in: 'query',
1788
+
required: true,
1789
+
schema: {
1790
+
type: 'string',
1791
+
},
1792
+
description:
1793
+
'This tag is inline with other text\nThis is a long description that\nspans multiple lines in the source.',
0 commit comments