Hi all, I have used a JS script to publish my pact...
# pactflow
n
Hi all, I have used a JS script to publish my pact using an openapi yaml file. But when I click on the arrow to show the contents of the contract it simply just shows a loading spinner forever. Has anyone encountered this?
🤔 1
m
Any errors in the console?
n
I think it might be due to the fact that in my yaml file I have
$refs
. Because when I used the file from the POC you and Yousef did it worked fine. But as you can see from the image that i've attached we use refs
👍 1
y
Two points. 1. Uploading via a JS file alone, won’t be sufficient as you need to create a branch associated with that version for the provider, this is done when you use the CLI tools for publishing provider contracts. 2. The only time I haven’t seem the OAS render is due to incorrect content types. Could you provide the file and the script you are using to publish?
n
Okay I have sent them to you privately on slack,
m
Yep, see the docs. You must upload a fully resolved OAS. There are several tools that do this
n
Okay great thanks for all the help on this