Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions documents/forOpenAPISpecification/OpenAPI_Specification_3.0.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,12 @@ APIの認証方式を記載する。
良い例;

```yaml
# 認証しない場合のみ個別で定義する
security: []
paths:
/signin:
post:
operation_id: signin
# 認証しない場合のみ個別で定義する
security: []
```

## components
Expand Down Expand Up @@ -712,9 +716,10 @@ components:
標準で用いるAPI認証の定義を行う。

```yaml
# Bearer トークによる認証
securitySchemes:
BearerAuth:
components:
securitySchemes:
# Bearer トークンによる認証
Bearer:
type: http
scheme: bearer
bearerFormat: JWT
Expand Down