Skip to content

Commit 8275405

Browse files
committed
Adjust error messages
Signed-off-by: Alan Cha <Alan.cha1@ibm.com>
1 parent 784b89a commit 8275405

File tree

7 files changed

+10
-13
lines changed

7 files changed

+10
-13
lines changed

packages/openapi-to-graphql/lib/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/openapi-to-graphql/lib/preprocessor.js

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/openapi-to-graphql/lib/preprocessor.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/openapi-to-graphql/lib/utils.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/openapi-to-graphql/lib/utils.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/openapi-to-graphql/src/preprocessor.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -608,9 +608,7 @@ function getProcessedSecuritySchemes<TSource, TContext, TArgs>(
608608
case 'oauth2':
609609
handleWarning({
610610
mitigationType: MitigationTypes.OAUTH_SECURITY_SCHEME,
611-
message:
612-
`OAuth security scheme found in OAS '${oas.info.title}'. ` +
613-
`OAuth support is provided using the 'tokenJSONpath' option`,
611+
message: `OAuth security scheme found in OAS '${oas.info.title}'`,
614612
data,
615613
log: preprocessingLog
616614
})

packages/openapi-to-graphql/src/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export const mitigations: { [mitigationType in MitigationTypes]: string } = {
7676
'Select first response object with successful status code (200-299).',
7777
NON_APPLICATION_JSON_SCHEMA: 'Ignore schema',
7878
OBJECT_MISSING_PROPERTIES:
79-
'The (sub-)object will be stored in an arbitray JSON type.',
79+
'The (sub-)object will be stored in an arbitrary JSON type.',
8080
UNKNOWN_TARGET_TYPE: 'The data will be stored in an arbitrary JSON type.',
8181
UNRESOLVABLE_SCHEMA: 'Ignore and continue. May lead to unexpected behavior.',
8282
UNSUPPORTED_HTTP_SECURITY_SCHEME: 'Ignore security scheme.',
@@ -100,7 +100,7 @@ export const mitigations: { [mitigationType in MitigationTypes]: string } = {
100100
LIMIT_ARGUMENT_NAME_COLLISION: `Do not override existing 'limit' argument.`,
101101

102102
// Miscellaneous
103-
OAUTH_SECURITY_SCHEME: `Ignore security scheme`
103+
OAUTH_SECURITY_SCHEME: `Do not create OAuth viewer. OAuth support is provided using the 'tokenJSONpath' option.`
104104
}
105105

106106
/**
@@ -160,7 +160,7 @@ export function sortObject<T>(o: T): T {
160160
* Finds the common property names between two objects
161161
*/
162162
export function getCommonPropertyNames(object1, object2): string[] {
163-
return Object.keys(object1).filter(propertyName => {
163+
return Object.keys(object1).filter((propertyName) => {
164164
return propertyName in object2
165165
})
166166
}

0 commit comments

Comments
 (0)