Skip to content

Commit bf41365

Browse files
committed
Change comments
1 parent 201b042 commit bf41365

11 files changed

+19
-21
lines changed

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

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/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/resolver_builder.js

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

packages/openapi-to-graphql/lib/resolver_builder.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/types/operation.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ export declare type Operation = {
107107
*/
108108
inViewer: boolean;
109109
/**
110-
* Type of operation
110+
* Type of root operation type, i.e. whether the generated field should be
111+
* added to the Query, Mutation, or Subscription root operation
111112
*/
112113
operationType: GraphQLOperationType;
113114
/**

packages/openapi-to-graphql/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"api_sub": "nodemon test/example_api5_server.js",
4444
"dev": "tsc -w",
4545
"start_dev": "DEBUG=preprocessing,translation,http nodemon test/example_gql_server.js",
46-
"start_dev_sub": "DEBUG=preprocessing,translation,http,pubsub nodemon test/example_gql_server_ws.js",
46+
"start_dev_ws": "DEBUG=preprocessing,translation,http,pubsub nodemon test/example_gql_server_ws.js",
4747
"build": "tsc",
4848
"guru-load": "node test/evaluation/load_apis_guru.js",
4949
"guru-test": "DEBUG=preprocessing,translation node test/evaluation/eval_apis_guru.js",

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -764,9 +764,6 @@ export function getResolver({
764764
saneData = arraySaneData
765765
}
766766

767-
// if (operation.callbacks)
768-
// pubsub.publish(``, saneData) ?
769-
770767
resolve(saneData)
771768
} else {
772769
// TODO: Handle YAML
@@ -989,9 +986,10 @@ function getAuthReqAndProtcolName(
989986
}
990987

991988
/**
992-
* Given a link parameter | callback path, determine the value
989+
* Given a link parameter or callback path, determine the value from the runtime
990+
* expression
993991
*
994-
* The link parameter | callback path is a reference to data contained in the
992+
* The link parameter or callback path is a reference to data contained in the
995993
* url/method/statuscode or response/request body/query/path/header
996994
*/
997995
function resolveRuntimeExpression(

packages/openapi-to-graphql/src/types/oas3.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ type ComponentsObject = {
244244
callbacks?: {
245245
[key: string]: CallbackObject | ReferenceObject
246246
}
247-
// callbacks?: CallbacksObject
248247
}
249248

250249
type TagObject = {

packages/openapi-to-graphql/src/types/operation.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ export type Operation = {
171171
inViewer: boolean
172172

173173
/**
174-
* Type of operation
174+
* Type of root operation type, i.e. whether the generated field should be
175+
* added to the Query, Mutation, or Subscription root operation
175176
*/
176177
operationType: GraphQLOperationType
177178

packages/openapi-to-graphql/test/example_api7.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const HTTP_PORT = 3008
2121
const MQTT_PORT = 1885
2222

2323
oas.servers[0].variables.port.default = String(HTTP_PORT)
24-
// oas.servers[1].variables.port.default = String(MQTT_PORT)
24+
oas.servers[1].variables.port.default = String(MQTT_PORT)
2525

2626
let createdSchema
2727
let wsServer
@@ -44,8 +44,8 @@ beforeAll(() => {
4444
mqttClient = connect(`mqtt://localhost:${MQTT_PORT}`, {
4545
keepalive: 60,
4646
reschedulePings: true,
47-
// protocolId: 'MQTT',
48-
// protocolVersion: 4,
47+
protocolId: 'MQTT',
48+
protocolVersion: 4,
4949
reconnectPeriod: 2000,
5050
connectTimeout: 5 * 1000,
5151
clean: true

packages/openapi-to-graphql/test/example_gql_server_ws.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ openAPIToGraphQL
2525
const client = connect(`mqtt://localhost:1885`, {
2626
keepalive: 60,
2727
reschedulePings: true,
28-
// protocolId: 'MQTT',
29-
// protocolVersion: 4,
28+
protocolId: 'MQTT',
29+
protocolVersion: 4,
3030
reconnectPeriod: 2000,
3131
connectTimeout: 5 * 1000,
3232
clean: true

0 commit comments

Comments
 (0)