You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We offer a default Redocly configuration file when we detect an openapi definition.
How should we improve it?
Rename it from .redocly.yaml to redocly.yaml.
Replace the contents of the file with the one below, but be sure to change the path to the root file detected.
# See https://redocly.com/docs/cli/configuration/configuration-file/ for information on how to customize your configurationapis:
changeme@v1:
root: ./openapi.yamllint:
extends:
- recommendedrules:
paths-kebab-case: errorfeatures.openapi:
generateCodeSamples:
languages:
- lang: curl
- lang: Node.js
- lang: Python
Why should we improve it?
The current one doesn't actually work and requires the user to make a lot of changes.
Describe alternatives you've considered
Removing the apis section.
Additional context
The current generated file:
apiDefinitions:
# a set of named keys and values of entrypoints to OpenAPI definitions.# example# petstore: ./openapi.yamllint:
# the lint optionsreferenceDocs:
# the API reference docs options, including theme options.
The text was updated successfully, but these errors were encountered:
adamaltman
changed the title
Improve the default redocly.yaml file
Improve the default redocly.yaml file
Mar 23, 2022
@adamaltman will renaming the file only for vscode cause duplicate configs for a user? I use vsc and the cli depending on my workflow. I would prefer to maintain a single file. I have a separate issue opened for allowing config file location in vsc settings because it's currently tied to the workspace only. #16
No, it won't cause duplicate configs. It will use either redocly.yaml or .redocly.yaml. If both are present, it will throw an error. We are going to release docs about this by next week. This issue was made in advance. 😄
What should we improve?
We offer a default Redocly configuration file when we detect an openapi definition.
How should we improve it?
.redocly.yaml
toredocly.yaml
.Why should we improve it?
The current one doesn't actually work and requires the user to make a lot of changes.
Describe alternatives you've considered
apis
section.Additional context
The current generated file:
The text was updated successfully, but these errors were encountered: