Skip to content

Commit 2734424

Browse files
prettier fix
1 parent ed59c19 commit 2734424

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

tools/spectral/ipa/__tests__/createMethodRequestBodyIsRequestSuffixedObject.test.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,31 +154,36 @@ testRule('xgen-IPA-106-create-method-request-body-is-request-suffixed-object', [
154154
errors: [
155155
{
156156
code: 'xgen-IPA-106-create-method-request-body-is-request-suffixed-object',
157-
message: 'The response body schema must reference a schema with a Request suffix. http://go/ipa-spectral#IPA-106',
157+
message:
158+
'The response body schema must reference a schema with a Request suffix. http://go/ipa-spectral#IPA-106',
158159
path: ['paths', '/resource', 'post', 'requestBody', 'content', 'application/vnd.atlas.2023-01-01+json'],
159160
severity: DiagnosticSeverity.Warning,
160161
},
161162
{
162163
code: 'xgen-IPA-106-create-method-request-body-is-request-suffixed-object',
163-
message: 'The response body schema must reference a schema with a Request suffix. http://go/ipa-spectral#IPA-106',
164+
message:
165+
'The response body schema must reference a schema with a Request suffix. http://go/ipa-spectral#IPA-106',
164166
path: ['paths', '/resource', 'post', 'requestBody', 'content', 'application/vnd.atlas.2024-01-01+json'],
165167
severity: DiagnosticSeverity.Warning,
166168
},
167169
{
168170
code: 'xgen-IPA-106-create-method-request-body-is-request-suffixed-object',
169-
message: 'The response body schema must reference a schema with a Request suffix. http://go/ipa-spectral#IPA-106',
171+
message:
172+
'The response body schema must reference a schema with a Request suffix. http://go/ipa-spectral#IPA-106',
170173
path: ['paths', '/resourceTwo', 'post', 'requestBody', 'content', 'application/vnd.atlas.2023-01-01+json'],
171174
severity: DiagnosticSeverity.Warning,
172175
},
173176
{
174177
code: 'xgen-IPA-106-create-method-request-body-is-request-suffixed-object',
175-
message: 'The response body schema must reference a schema with a Request suffix. http://go/ipa-spectral#IPA-106',
178+
message:
179+
'The response body schema must reference a schema with a Request suffix. http://go/ipa-spectral#IPA-106',
176180
path: ['paths', '/resourceTwo', 'post', 'requestBody', 'content', 'application/vnd.atlas.2024-01-01+json'],
177181
severity: DiagnosticSeverity.Warning,
178182
},
179183
{
180184
code: 'xgen-IPA-106-create-method-request-body-is-request-suffixed-object',
181-
message: 'The response body schema is defined inline and must reference a predefined schema. http://go/ipa-spectral#IPA-106',
185+
message:
186+
'The response body schema is defined inline and must reference a predefined schema. http://go/ipa-spectral#IPA-106',
182187
path: ['paths', '/resourceThree', 'post', 'requestBody', 'content', 'application/vnd.atlas.2023-01-01+json'],
183188
severity: DiagnosticSeverity.Warning,
184189
},

tools/spectral/ipa/__tests__/createMethodShouldNotHaveQueryParameters.test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,15 @@ testRule('xgen-IPA-106-create-method-should-not-have-query-parameters', [
120120
errors: [
121121
{
122122
code: 'xgen-IPA-106-create-method-should-not-have-query-parameters',
123-
message: 'Input parameter [filter]: Create operations should not have query parameters. http://go/ipa-spectral#IPA-106',
123+
message:
124+
'Input parameter [filter]: Create operations should not have query parameters. http://go/ipa-spectral#IPA-106',
124125
path: ['paths', '/resource', 'post'],
125126
severity: DiagnosticSeverity.Warning,
126127
},
127128
{
128129
code: 'xgen-IPA-106-create-method-should-not-have-query-parameters',
129-
message: 'Input parameter [query-param]: Create operations should not have query parameters. http://go/ipa-spectral#IPA-106',
130+
message:
131+
'Input parameter [query-param]: Create operations should not have query parameters. http://go/ipa-spectral#IPA-106',
130132
path: ['paths', '/resourceTwo', 'post'],
131133
severity: DiagnosticSeverity.Warning,
132134
},

0 commit comments

Comments
 (0)