Skip to content

Commit 64ba703

Browse files
Merge pull request #1042 from ericcrosson-bitgo/style-apply-prettier
style: apply prettier
2 parents 6bdd8b4 + 0cff4b4 commit 64ba703

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

packages/openapi-generator/test/openapi/jsdoc.test.ts

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -548,8 +548,8 @@ export const route = h.httpRoute({
548548
method: 'GET',
549549
request: h.httpRequest({
550550
body: {
551-
/**
552-
* This is a foo description.
551+
/**
552+
* This is a foo description.
553553
* @deprecated
554554
*/
555555
foo: t.string()
@@ -634,8 +634,8 @@ export const route = h.httpRoute({
634634
method: 'GET',
635635
request: h.httpRequest({
636636
body: {
637-
/**
638-
* This is a foo description.
637+
/**
638+
* This is a foo description.
639639
* @minimum 5
640640
* @maximum 10
641641
* @minItems 1
@@ -734,7 +734,7 @@ import * as h from '@api-ts/io-ts-http';
734734
/**
735735
* @title Some Readable BodyFoo Title
736736
*/
737-
const BodyFoo = t.type({
737+
const BodyFoo = t.type({
738738
/** a foo description */
739739
foo: t.string,
740740
});
@@ -747,8 +747,8 @@ const ParamsFoo = { someId: t.string };
747747
export const route = h.httpRoute({
748748
path: '/foo',
749749
method: 'POST',
750-
request: h.httpRequest({
751-
params: {},
750+
request: h.httpRequest({
751+
params: {},
752752
body: h.httpRequest({ params: ParamsFoo, body: BodyFoo, })
753753
}),
754754
response: {
@@ -841,17 +841,17 @@ const ROUTE_WITH_ARRAY_EXAMPLE = `
841841
import * as t from 'io-ts';
842842
import * as h from '@api-ts/io-ts-http';
843843
844-
/**
844+
/**
845845
* @example btc
846846
*/
847847
const innerItems = t.string;
848848
849849
export const route = h.httpRoute({
850850
path: '/foo',
851851
method: 'POST',
852-
request: h.httpRequest({
853-
params: {},
854-
body: t.type({
852+
request: h.httpRequest({
853+
params: {},
854+
body: t.type({
855855
/**
856856
* @example "btc"
857857
*/
@@ -968,27 +968,27 @@ const ROUTE_WITH_NESTED_ARRAY_EXAMPLES = `
968968
import * as t from 'io-ts';
969969
import * as h from '@api-ts/io-ts-http';
970970
971-
/**
971+
/**
972972
* @example ["a", "b"]
973973
*/
974974
const firstLevel = t.array(t.string);
975975
976-
/**
976+
/**
977977
* @example [["a", "b"], ["c", "d"]]
978978
*/
979979
const secondLevel = t.array(firstLevel);
980980
981-
/**
982-
* @example [[["a"], ["b"]], [["c"], ["d"]]]
981+
/**
982+
* @example [[["a"], ["b"]], [["c"], ["d"]]]
983983
*/
984984
const thirdLevel = t.array(secondLevel);
985985
986986
export const route = h.httpRoute({
987987
path: '/foo',
988988
method: 'POST',
989-
request: h.httpRequest({
990-
params: {},
991-
body: t.type({
989+
request: h.httpRequest({
990+
params: {},
991+
body: t.type({
992992
nested: thirdLevel
993993
})
994994
}),
@@ -1024,7 +1024,7 @@ testCase('route with nested array examples', ROUTE_WITH_NESTED_ARRAY_EXAMPLES, {
10241024
},
10251025
},
10261026
responses: {
1027-
200: {
1027+
'200': {
10281028
description: 'OK',
10291029
content: {
10301030
'application/json': {
@@ -1107,14 +1107,14 @@ const SampleType = t.type({
11071107
export const route = h.httpRoute({
11081108
path: '/foo',
11091109
method: 'GET',
1110-
request: h.httpRequest({
1110+
request: h.httpRequest({
11111111
params: {
11121112
/** @private */
11131113
path: t.string
11141114
},
11151115
query: {
11161116
/** @private */
1117-
query: t.string
1117+
query: t.string
11181118
},
11191119
body: SampleType
11201120
}),

0 commit comments

Comments
 (0)