Fabian Schneider

Results 11 comments of Fabian Schneider

To use multiple headers you can just use the `--header` (or `-H`) option multiple times, e.g.: ```sh graphql-schema-diff https://example.com/graphql schema.graphql \ -H 'Authorization: Bearer 123' \ -H 'Content-Type: application/json' \...

Just saw that there is a PR which adds GraphQL syntax highlighting to highlight.js (https://github.com/highlightjs/highlight.js/pull/3448). After that PR is merged and released I can update `graphql-schema-diff` to enable GraphQL syntax...

Unfortunately this is not possible in the current version. Maybe we'll implement this feature in the future. Could you please describe your use case or why you need the data...

This seems to be a bug in the [js-yaml](https://github.com/nodeca/js-yaml) package. See: https://github.com/nodeca/js-yaml/issues/530 Tried it with your example: ```js node -e "console.log(require('js-yaml').safeDump({example: '0612345678'}))" // example: 0612345678 ``` Using only digits below...

This is a good suggestion. However since other projects like [Swagger UI](https://github.com/swagger-api/swagger-ui) or [Swagger-Editor](https://github.com/swagger-api/swagger-editor) still include *swagger* in their official names I would wait for *OpenAPI* to get more common...

Looks like [Swagger Parser finally supports OpenAPI 3.0](https://github.com/BigstickCarpet/swagger-parser/blob/master/CHANGELOG.md#v500-2018-05-25) which means we can start implementing support for OpenAPI 3.0 as well.

I think this was implemented when includes/excludes with regular expressions were not possible yet. Back then this implementation made sense, because you would either include certain paths or exclude them....

I think introducing a "synchronous mode" would not comply with the core principles of node.js. However I understand the issue and agree that it should be possible to initialize Swagger...

@kibertoad I was referring to the event-driven nature of node.js (including asynchronous I/O). You are right, there are some use cases where synchronous file operations make sense (e.g. during application...

@kibertoad Yes for local files it would work synchronously, but this module internally uses the [Swagger Parser](https://github.com/BigstickCarpet/swagger-parser) module which does all the resolving and dereferencing of the Swagger schemas. To...