insomnia/packages
Dimitri Mitropoulos 2bf4586dc7
[o2k] copy plugin objects as is (and respect enabled flag) (#3419)
* clears all errors in tests, enables overrides for spec generators

* removes copy/pasta in tests, uses spec generator, removes useless async

continuing from the last commit, but separated out for easier review

* consolidates openapi x-kong extension to one place, uses consistently

these were used for some things, not used for others, exported in some places, not exported in others.  now it's uniform and we can look up references for each type.

* adds failing test for ticket

* only adds `enabled` where it was specified

* allows adding passing top-level properties to config

now, the line that was there specifically for `config` is redundant.

* adds tags to test result per review feedback

* removes unnecessary generic

for some reason, this didn't error before, but now it is.

* removes unnecessary argument

this failed on the CI with:

openapi-2-kong: FAIL src/generate.test.ts
openapi-2-kong:   ● Test suite failed to run
openapi-2-kong:     src/generate.test.ts:90:58 - error TS2769: No overload matches this call.
openapi-2-kong:       Overload 1 of 2, '(src: string, options?: (ParseOptions & DocumentOptions & SchemaOptions & ToJSOptions) | undefined): any', gave the following error.
openapi-2-kong:         Argument of type '"utf8"' is not assignable to parameter of type '(ParseOptions & DocumentOptions & SchemaOptions & ToJSOptions) | undefined'.
openapi-2-kong:       Overload 2 of 2, '(src: string, reviver: Reviver, options?: (ParseOptions & DocumentOptions & SchemaOptions & ToJSOptions) | undefined): any', gave the following error.
openapi-2-kong:         Argument of type 'string' is not assignable to parameter of type 'Reviver'.
openapi-2-kong:     90       const parsedSpec = YAML.parse(dcFixtureFileString, 'utf8');
openapi-2-kong:                                                                 ~~~~~~
openapi-2-kong:     src/generate.test.ts💯59 - error TS2769: No overload matches this call.
openapi-2-kong:       Overload 1 of 2, '(src: string, options?: (ParseOptions & DocumentOptions & SchemaOptions & ToJSOptions) | undefined): any', gave the following error.
openapi-2-kong:         Argument of type '"utf8"' is not assignable to parameter of type '(ParseOptions & DocumentOptions & SchemaOptions & ToJSOptions) | undefined'.
openapi-2-kong:       Overload 2 of 2, '(src: string, reviver: Reviver, options?: (ParseOptions & DocumentOptions & SchemaOptions & ToJSOptions) | undefined): any', gave the following error.
openapi-2-kong:         Argument of type 'string' is not assignable to parameter of type 'Reviver'.
openapi-2-kong:     100       const parsedSpec = YAML.parse(k8sFixtureFileString, 'utf8');
2021-05-25 16:05:52 -04:00
..
insomnia-app fix spelling (#2976) 2021-05-25 12:16:43 -04:00
insomnia-components merge release branch with develop and resolve conflicts 2021-05-25 09:30:09 +12:00
insomnia-cookies publish npm packages lib@2.3.0-beta.2 2021-05-19 14:50:58 +02:00
insomnia-importers fix spelling (#2976) 2021-05-25 12:16:43 -04:00
insomnia-inso fix spelling (#2976) 2021-05-25 12:16:43 -04:00
insomnia-prettify publish npm packages lib@2.3.0-beta.2 2021-05-19 14:50:58 +02:00
insomnia-send-request publish npm packages lib@2.3.0-beta.2 2021-05-19 14:50:58 +02:00
insomnia-smoke-test fix spelling (#2976) 2021-05-25 12:16:43 -04:00
insomnia-testing publish npm packages lib@2.3.0-beta.2 2021-05-19 14:50:58 +02:00
insomnia-url publish npm packages lib@2.3.0-beta.2 2021-05-19 14:50:58 +02:00
insomnia-xpath publish npm packages lib@2.3.0-beta.2 2021-05-19 14:50:58 +02:00
openapi-2-kong [o2k] copy plugin objects as is (and respect enabled flag) (#3419) 2021-05-25 16:05:52 -04:00