UNPKG

openapi-to-graphql-nullable

Version:

Fork of openapi-to-graphql that fixes nullable handling. Published to NPM since there's no other easy way to consume a Lerna package. Unmaintained.

25 lines (19 loc) 639 B
// Copyright IBM Corp. 2018. All Rights Reserved. // Node module: openapi-to-graphql // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT 'use strict' /* globals test, expect */ import * as openAPIToGraphQL from '../lib/index' import { Options } from '../lib/types/options' const oas = require('./fixtures/docusign.json') test('Generate schema without problems', () => { const options: Options<any, any, any> = { strict: false } return openAPIToGraphQL .createGraphQLSchema(oas, options) .then(({ schema }) => { expect(schema).toBeTruthy() }) })