Redocly / redocly-vs-code

Redocly VS Code extension
35 stars 6 forks source link

Is there any changes for redocly.yaml configuration? #41

Closed AviandraP closed 1 year ago

AviandraP commented 1 year ago

image

Today i experience this issue, is there any changes so i can update my configuration file correctly? Thank you.

AlexVarchuk commented 1 year ago

Hi, @AviandraPutri-Jubelio. Thanks for the issue. I'll transfer that to the related repository.

tatomyr commented 1 year ago

Hi @AviandraPutri-Jubelio,

Some time ago we changed the redocly.yaml syntax. Please take a look at the docs.

We will support the old syntax until the stable release, so you can leave it as it is for the time being. However, if you want to update your configuration file, here is the migration guide: https://redocly.com/docs/api-registry/guides/migration-guide-config-file/#changed-properties .

AviandraP commented 1 year ago

hello, i've changed it into the newest one, but this errors keep showing, do you have any idea why? image

roman-sainchuk commented 1 year ago

Hello @AviandraP and thank you for reporting an issue. Unfortunately, we don't have a migration guide from version < 1.0.0-beta.106 yet. Also in the latest versions we don't have lint (as well as styleguide) field anymore. Please write your rules field on top level, e.g.:

apis:
  main@v1:
    root: ./openapi.yaml
rules:
  example-rule-name: error
features.openapi:
  ...

For features.openapi please use this schema.

roman-sainchuk commented 1 year ago

Hello @AviandraP! Have the last comment solved your issue? May we close it?

AviandraP commented 1 year ago

Sorry that I forget to tell you, yes i've solved my issue, thank you so much!