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
Ticket: DX-2755
This commit removes the support for the @preserveLineBreaks tag. We will
no longer support this tag as line breaks are now preserved by default
'The permissions granted by this access token.\n\n- `all` - Access all actions in the test environment.\n- `crypto_compare` - Call CryptoCompare API.',
1717
-
},
1718
-
],
1719
-
responses: {
1720
-
200: {
1721
-
description: 'OK',
1722
-
content: {
1723
-
'application/json': {
1724
-
schema: {
1725
-
type: 'string',
1726
-
},
1727
-
},
1728
-
},
1729
-
},
1730
-
},
1731
-
},
1732
-
},
1733
-
},
1734
-
components: {
1735
-
schemas: {},
1736
-
},
1737
-
},
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
1765
-
},
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