0

I am trying to build an API doc using OpenAPI specifications. I am using Redocly CLI for building the UI by using this command:

redocly build-docs openapi/openapi.yaml

But I am getting this error:

Found undefined and using theme.openapi options
Prerendering docsError: Invalid JSON pointer: components/schemas/agreement_schema.yaml#/NewAgreement

I rechecked my paths but they are correct. I have created a StackBlitz for the issue. That is why I am not sharing any code here.

How can I solve this?

Helen
  • 87,344
  • 17
  • 243
  • 314
Deep
  • 123
  • 1
  • 3
  • 16

1 Answers1

0

The paths look like they are missing the first section specifications/, they should be relative to the root OpenAPI file. I see it in two places for the NewAgreement schema object: in specifications/components/schemas/agreement_schema.yaml and also in specifications/agreement.yaml

Lorna Mitchell
  • 1,819
  • 13
  • 22