-
Notifications
You must be signed in to change notification settings - Fork 101
OpenApiTryIt component shows "Incorrect definitionId" error #195
Comments
Hi @timothymcmackin, Thank you for contacting us. You need to integrate the Reference docs into the Developer portal in order for the
Let us know whether it resolved your problem. |
Thanks @nalesnichok, that fixed the problem. It would be good to add that prerequisite here: |
Another note for people in the future who may find this item: One issue I had was that if the openapi file was missing something or had a problem, the dev portal wouldn't load and didn't seem to give me an error So if you're having this problem, make sure that your openapi file has all of the necessary things like a |
I have followed the previous steps, Incorrect definitionId popups randomly, sometimes if I run yarn clean and yarn start it starts working again |
I have found the issue, for some reason if I export a FullWidthLayout in the mdx file, the < OpenApiResponse > element breaks |
I forked this starter and tried to use the OpenApiTryIt MDX component as described in these docs:
https://redocly.com/docs/developer-portal/guides/step-by-step/
I added the catFacts API in the
siteConfig.yaml
file:Then I created this page in a file named
developer-portal/openapi-try-it.mdx
:When I run the portal locally and go to http://localhost:3000/developer-portal/openapi-try-it/ , I see an error that says
Incorrect definitionId: "catFacts"
. What am I doing wrong? I've also tried downloading the openapi file and linking to it locally instead of putting the link inoasDefinitions
.Here's my minimal reproduction:
https://github.com/timothymcmackin/redocly-openapi-try-it
The text was updated successfully, but these errors were encountered: