@@ -548,8 +548,8 @@ export const route = h.httpRoute({
548
548
method: 'GET',
549
549
request: h.httpRequest({
550
550
body: {
551
- /**
552
- * This is a foo description.
551
+ /**
552
+ * This is a foo description.
553
553
* @deprecated
554
554
*/
555
555
foo: t.string()
@@ -634,8 +634,8 @@ export const route = h.httpRoute({
634
634
method: 'GET',
635
635
request: h.httpRequest({
636
636
body: {
637
- /**
638
- * This is a foo description.
637
+ /**
638
+ * This is a foo description.
639
639
* @minimum 5
640
640
* @maximum 10
641
641
* @minItems 1
@@ -734,7 +734,7 @@ import * as h from '@api-ts/io-ts-http';
734
734
/**
735
735
* @title Some Readable BodyFoo Title
736
736
*/
737
- const BodyFoo = t.type({
737
+ const BodyFoo = t.type({
738
738
/** a foo description */
739
739
foo: t.string,
740
740
});
@@ -747,8 +747,8 @@ const ParamsFoo = { someId: t.string };
747
747
export const route = h.httpRoute({
748
748
path: '/foo',
749
749
method: 'POST',
750
- request: h.httpRequest({
751
- params: {},
750
+ request: h.httpRequest({
751
+ params: {},
752
752
body: h.httpRequest({ params: ParamsFoo, body: BodyFoo, })
753
753
}),
754
754
response: {
@@ -841,17 +841,17 @@ const ROUTE_WITH_ARRAY_EXAMPLE = `
841
841
import * as t from 'io-ts';
842
842
import * as h from '@api-ts/io-ts-http';
843
843
844
- /**
844
+ /**
845
845
* @example btc
846
846
*/
847
847
const innerItems = t.string;
848
848
849
849
export const route = h.httpRoute({
850
850
path: '/foo',
851
851
method: 'POST',
852
- request: h.httpRequest({
853
- params: {},
854
- body: t.type({
852
+ request: h.httpRequest({
853
+ params: {},
854
+ body: t.type({
855
855
/**
856
856
* @example "btc"
857
857
*/
@@ -968,27 +968,27 @@ const ROUTE_WITH_NESTED_ARRAY_EXAMPLES = `
968
968
import * as t from 'io-ts';
969
969
import * as h from '@api-ts/io-ts-http';
970
970
971
- /**
971
+ /**
972
972
* @example ["a", "b"]
973
973
*/
974
974
const firstLevel = t.array(t.string);
975
975
976
- /**
976
+ /**
977
977
* @example [["a", "b"], ["c", "d"]]
978
978
*/
979
979
const secondLevel = t.array(firstLevel);
980
980
981
- /**
982
- * @example [[["a"], ["b"]], [["c"], ["d"]]]
981
+ /**
982
+ * @example [[["a"], ["b"]], [["c"], ["d"]]]
983
983
*/
984
984
const thirdLevel = t.array(secondLevel);
985
985
986
986
export const route = h.httpRoute({
987
987
path: '/foo',
988
988
method: 'POST',
989
- request: h.httpRequest({
990
- params: {},
991
- body: t.type({
989
+ request: h.httpRequest({
990
+ params: {},
991
+ body: t.type({
992
992
nested: thirdLevel
993
993
})
994
994
}),
@@ -1024,7 +1024,7 @@ testCase('route with nested array examples', ROUTE_WITH_NESTED_ARRAY_EXAMPLES, {
1024
1024
} ,
1025
1025
} ,
1026
1026
responses : {
1027
- 200 : {
1027
+ ' 200' : {
1028
1028
description : 'OK' ,
1029
1029
content : {
1030
1030
'application/json' : {
@@ -1107,14 +1107,14 @@ const SampleType = t.type({
1107
1107
export const route = h.httpRoute({
1108
1108
path: '/foo',
1109
1109
method: 'GET',
1110
- request: h.httpRequest({
1110
+ request: h.httpRequest({
1111
1111
params: {
1112
1112
/** @private */
1113
1113
path: t.string
1114
1114
},
1115
1115
query: {
1116
1116
/** @private */
1117
- query: t.string
1117
+ query: t.string
1118
1118
},
1119
1119
body: SampleType
1120
1120
}),
0 commit comments