Skip to content

Commit 41c658c

Browse files
feat: allow beta endpoints in docs
Because we want to surface EA endpoints We now want to allow beta paths within the reference doc
1 parent 268f03a commit 41c658c

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

tools/api-docs-generator/generator/reference_docs.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,6 @@ func processOperation(pathURL string,
152152
}
153153
}
154154

155-
if isBeta(operation) {
156-
continue
157-
}
158-
159155
tag += spec.Suffix
160156
specDocs[tag] = append(specDocs[tag], operationPath{
161157
operation: operation,

tools/api-docs-generator/generator/reference_docs_test.go

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -294,36 +294,6 @@ func Test_aggregateSpecs(t *testing.T) {
294294
},
295295
wantErr: assert.NoError,
296296
},
297-
{
298-
name: "filters out beta paths",
299-
args: args{
300-
cfg: &config.Config{
301-
Specs: []config.Spec{
302-
{
303-
Path: "spec_with_stability.yaml",
304-
},
305-
},
306-
},
307-
docsBasePath: "../testdata/reference_docs/",
308-
},
309-
want: map[string][]operationPath{
310-
"stable": {
311-
{
312-
method: "GET",
313-
specPath: "spec_with_stability.yaml",
314-
pathURL: "/stable-path",
315-
},
316-
},
317-
"no-stability": {
318-
{
319-
method: "GET",
320-
specPath: "spec_with_stability.yaml",
321-
pathURL: "/no-stability-path",
322-
},
323-
},
324-
},
325-
wantErr: assert.NoError,
326-
},
327297
}
328298
for _, tt := range tests {
329299
t.Run(tt.name, func(t *testing.T) {

0 commit comments

Comments
 (0)