api-elements.js icon indicating copy to clipboard operation
api-elements.js copied to clipboard

feat(oas2): add format link

Open marcofriso opened this issue 5 years ago • 3 comments

Closes APIARY-6105

marcofriso avatar Aug 04 '20 11:08 marcofriso

I had errors on the same tests locally today after I came back to this branch, I re-ran env GENERATE=1 npm test and now everything is passing again (locally).

The error was:

(node:42618) UnhandledPromiseRejectionWarning: AssertionError: expected { Object (element, meta, ...) } to deeply equal { Object (element, content) }
    at fury.parse (/Users/marcofriso/Coding/Apiary/api-elements-js/packages/openapi2-parser/test/adapter-test.js:52:52)
    at promise.then.result (/Users/marcofriso/Coding/Apiary/api-elements-js/packages/openapi2-parser/node_modules/@apielements/core/lib/fury.js:240:30)
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:42618) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)

marcofriso avatar Aug 07 '20 13:08 marcofriso

@marcofriso you need to commit all of the change fixtures, including the ones in packages/swagger-zoo.

kylef avatar Aug 07 '20 15:08 kylef

@kylef I re-installed everything with yarn and regenerated the fixtures, now I see the changes in swagger-zoo

marcofriso avatar Aug 10 '20 09:08 marcofriso