Skip to content

Commit 5c96f5a

Browse files
author
Ifeora Okechukwu
committed
Merge branch 'master' into feature-stricter-types
2 parents 43e1006 + 182f933 commit 5c96f5a

File tree

85 files changed

+9259
-17130
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+9259
-17130
lines changed

.github/workflows/main.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Link checker
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
schedule:
11+
- cron: "0 0 1 * *"
12+
13+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
14+
jobs:
15+
# This workflow contains a single job called "build"
16+
build:
17+
# The type of runner that the job will run on
18+
runs-on: ubuntu-latest
19+
20+
# Steps represent a sequence of tasks that will be executed as part of the job
21+
steps:
22+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23+
- uses: actions/checkout@v2
24+
25+
- name: Link checker
26+
id: lc
27+
# You may pin to the exact commit or the version.
28+
# uses: peter-evans/link-checker@41c97244bb50a4a1b273d60abf5b5862b09f0c2d
29+
uses: peter-evans/link-checker@v1.2.2
30+
with:
31+
args: -r -v *.md packages/openapi-to-graphql/*.md packages/openapi-to-graphql/test/*.md packages/openapi-to-graphql-cli/*.md
32+
33+
- name: Create issue from file
34+
uses: peter-evans/create-issue-from-file@v2
35+
with:
36+
title: Link checker report
37+
content-filepath: ./link-checker/out.md
38+
labels: report, automated issue

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
sudo: false
21
language: node_js
32
node_js:
43
- "10"
@@ -8,6 +7,8 @@ os:
87
- linux
98
- osx
109

10+
dist: xenial
11+
1112
install:
1213
- npm install
1314
- npm i -g typescript jest

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Here are some guides to further help you get started:
6161
<img src="https://raw.githubusercontent.com/ibm/openapi-to-graphql/master/docs/data-centric.png" alt="Example of data-centric design" width="600">
6262

6363
- **Nested data**
64-
[Links](https://github.com/OAI/OpenAPI-Specification/blob/OpenAPI.next/versions/3.0.0.md#link-Object) defined in the OAS are used to create nested data structures, allowing for (deeply) nested queries.
64+
[Links](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md#linkObject) defined in the OAS are used to create nested data structures, allowing for (deeply) nested queries.
6565

6666
<img src="https://raw.githubusercontent.com/ibm/openapi-to-graphql/master/docs/links.png" alt="Example of links resolution" width="600">
6767

docs/tutorials/watson.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ The following code shows all that's needed to create and run a GraphQL wrapper a
1414

1515
```javascript
1616
const express = require('express')
17-
const graphqlHTTP = require('express-graphql')
18-
const OTG = require('openapi-to-graphql')
17+
const { graphqlHTTP } = require('express-graphql')
18+
const OtG = require('openapi-to-graphql')
1919
const bodyParser = require('body-parser')
2020

2121
async function startServer () {
2222
// use OpenAPI-to-GraphQL to create a GraphQL schema:
2323
const oas = require('path/to/language-translator-v2.json')
24-
const {schema} = await OTG.createGraphQLSchema(oas)
24+
const {schema} = await OtG.createGraphQLSchema(oas)
2525

2626
// setup Express.js app and serve the schema:
2727
const app = express()

0 commit comments

Comments
 (0)