-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add the ability to override the category name
- Loading branch information
1 parent
98000d2
commit d9a2fde
Showing
6 changed files
with
275 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
tools/api-docs-generator/testdata/reference_docs/spec_with_only_tagged.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
openapi: 3.0.3 | ||
info: | ||
title: Test | ||
contact: {} | ||
version: 3.0.0 | ||
description: Sample API | ||
servers: | ||
- url: /test | ||
description: Test | ||
tags: | ||
- name: Test | ||
description: test | ||
paths: | ||
/test: | ||
post: | ||
description: test | ||
operationId: test | ||
tags: | ||
- test | ||
requestBody: | ||
content: | ||
application/vnd.api+json: | ||
schema: | ||
type: object | ||
properties: | ||
prop1: | ||
type: string | ||
responses: | ||
"201": | ||
description: success | ||
content: | ||
application/vnd.api+json: | ||
schema: | ||
type: object | ||
location: | ||
schema: | ||
type: string |
37 changes: 37 additions & 0 deletions
37
tools/api-docs-generator/testdata/reference_docs/spec_with_only_tagged_2.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
openapi: 3.0.3 | ||
info: | ||
title: Test | ||
contact: {} | ||
version: 3.0.0 | ||
description: Sample API | ||
servers: | ||
- url: /test | ||
description: Test | ||
tags: | ||
- name: another | ||
description: another | ||
paths: | ||
/another_test: | ||
post: | ||
description: test | ||
operationId: test | ||
tags: | ||
- another | ||
requestBody: | ||
content: | ||
application/vnd.api+json: | ||
schema: | ||
type: object | ||
properties: | ||
prop1: | ||
type: string | ||
responses: | ||
"201": | ||
description: success | ||
content: | ||
application/vnd.api+json: | ||
schema: | ||
type: object | ||
location: | ||
schema: | ||
type: string |
39 changes: 39 additions & 0 deletions
39
tools/api-docs-generator/testdata/reference_docs/spec_with_override.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
openapi: 3.0.3 | ||
info: | ||
title: Test | ||
contact: {} | ||
version: 3.0.0 | ||
description: Sample API | ||
servers: | ||
- url: /test | ||
description: Test | ||
tags: | ||
- name: Test | ||
description: test | ||
paths: | ||
/test: | ||
post: | ||
x-snyk-documentation: | ||
category: overridden-test | ||
tags: | ||
- test | ||
description: test | ||
operationId: test | ||
requestBody: | ||
content: | ||
application/vnd.api+json: | ||
schema: | ||
type: object | ||
properties: | ||
prop1: | ||
type: string | ||
responses: | ||
"201": | ||
description: success | ||
content: | ||
application/vnd.api+json: | ||
schema: | ||
type: object | ||
location: | ||
schema: | ||
type: string |