Skip to content

Commit

Permalink
use built in info-override decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
torcolvin committed Aug 7, 2024
1 parent 456edbb commit e649b1b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 36 deletions.
7 changes: 4 additions & 3 deletions .redocly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@ apis:
public-capella:
root: "./docs/api/public.yaml"
decorators:
remove-x-internal: on
filter-out:
property: x-capella
value: false
info-override:
description: "App Services manages access and synchronization between Couchbase Lite and Couchbase Capella"
plugin/replace-description-capella: on
plugin/replace-server-capella:
serverUrl: 'https://{hostname}:4984'
plugin/replace-info-capella:
title: "App Services Public API"
remove-x-internal: on
metric:
root: "./docs/api/metric.yaml"
decorators:
Expand Down
1 change: 1 addition & 0 deletions docs/api/plugins/decorators/excise-rbac-capella.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ function ExciseRBACCapella() {
return {
Operation: {
leave(Operation) {
// remove all text after first regex match
idx = Operation.description.search(re);
if (idx > 0) {
Operation.description = Operation.description.substr(0, idx);
Expand Down
31 changes: 0 additions & 31 deletions docs/api/plugins/decorators/replace-info-capella.js

This file was deleted.

2 changes: 0 additions & 2 deletions docs/api/plugins/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@

const ExciseRBACCapella = require("./decorators/excise-rbac-capella.js");
const ReplaceDescriptionCapella = require("./decorators/replace-description-capella.js");
const ReplaceInfoCapella = require("./decorators/replace-info-capella.js");
const ReplaceServerCapella = require("./decorators/replace-server-capella.js");

module.exports = {
decorators: {
oas3: {
"excise-rbac-capella": ExciseRBACCapella,
"replace-description-capella": ReplaceDescriptionCapella,
"replace-info-capella": ReplaceInfoCapella,
"replace-server-capella": ReplaceServerCapella,
},
},
Expand Down

0 comments on commit e649b1b

Please sign in to comment.