-
Notifications
You must be signed in to change notification settings - Fork 138
/
.redocly.yaml
80 lines (76 loc) · 2.53 KB
/
.redocly.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Copyright 2022-Present Couchbase, Inc.
#
# Use of this software is governed by the Business Source License included in
# the file licenses/BSL-Couchbase.txt. As of the Change Date specified in that
# file, in accordance with the Business Source License, use of this software
# will be governed by the Apache License, Version 2.0, included in the file
# licenses/APL2.txt.
# This configuration file is read by the Redocly `openapi` CLI tool to validate/lint our specs (from GitHub Actions)
apis:
admin:
root: "./docs/api/admin.yaml"
decorators:
remove-x-internal: on
admin-internal:
root: "./docs/api/admin.yaml"
admin-capella:
root: "./docs/api/admin-capella.yaml"
decorators:
plugin/excise-rbac-capella: on
filter-out:
property: x-capella
value: false
remove-x-internal: on
public:
root: "./docs/api/public.yaml"
decorators:
remove-x-internal: on
public-internal:
root: "./docs/api/public.yaml"
public-capella:
root: "./docs/api/public.yaml"
decorators:
filter-out:
property: x-capella
value: false
info-override:
description: "App Services manages access and synchronization between Couchbase Lite and Couchbase Capella"
title: "App Services"
plugin/excise-rbac-capella: on
plugin/replace-description-capella: on
plugin/replace-server-capella:
serverUrl: 'https://{hostname}:4984'
remove-x-internal: on
metric:
root: "./docs/api/metric.yaml"
decorators:
remove-x-internal: on
metric-internal:
root: "./docs/api/metric.yaml"
metric-capella:
root: "./docs/api/metric-capella.yaml"
decorators:
filter-out:
property: x-capella
value: false
plugin/excise-rbac-capella: on
plugin/replace-description-capella: on
remove-x-internal: on
diagnostic:
root: "./docs/api/diagnostic.yaml"
decorators:
remove-x-internal: on
diagnostic-internal:
root: "./docs/api/diagnostic.yaml"
plugins:
- './docs/api/plugins/plugin.js'
extends:
- minimal
rules:
# disable unnecessary/invalid warnings
operation-2xx-response: off # _blipsync 101 Upgrade ...
operation-summary: off # Optional field
no-ambiguous-paths: off # /{db}/{doc} != /_debug/expvar
no-identical-paths: off # /{db} != /{targetdb}
no-path-trailing-slash: off # Some endpoints require a trailing slash
security-defined: off # TODO: Denote public and authenticated API endpoints with https://redocly.com/docs/cli/rules/security-defined