-
-
Notifications
You must be signed in to change notification settings - Fork 473
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(openapi-metadata): complete rewrite
- Loading branch information
Showing
123 changed files
with
1,788 additions
and
4,852 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
--- | ||
title: About openapi-metadata | ||
description: openapi-metadata Project Goals, comparisons, and more | ||
--- | ||
|
||
<script setup> | ||
import { VPTeamMembers } from 'vitepress/theme'; | ||
import contributors from '../data/contributors.json'; | ||
</script> | ||
|
||
# About | ||
|
||
## Project Goals | ||
|
||
1. Must respect the OpenAPI V3 specification | ||
2. Be extensible and easily integrated inside backend frameworks | ||
3. Be focused around developer experience | ||
|
||
## Contributors | ||
|
||
This library wouldn’t be possible without all these amazing contributors: | ||
|
||
<VPTeamMembers size="small" :members="contributors['openapi-metadata']" /> |
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,25 @@ | ||
--- | ||
title: Decorators | ||
--- | ||
|
||
# Decorators | ||
|
||
Decorators are used to enrich your OpenAPI specifications. They can be applied on a Controller, a Method or a Model. They are all prefixed with `Api`. | ||
|
||
> For more information about the decorators, you can directly refer to the [source code](https://github.com/openapi-ts/openapi-typescript/packages/openapi-metadata/src/decorators). | ||
| Decorator | Usage | Description | | ||
| ----------------------- | ------------------- | ------------------------------------------------------------------------ | | ||
| `@ApiBody` | Method | Sets the requestBody of the operation. | | ||
| `@ApiCookie` | Controller / Method | Adds a cookie parameter to the operation(s). | | ||
| `@ApiExcludeController` | Method | Excludes the operations of this controller from the document generation. | | ||
| `@ApiExcludeOperation` | Method | Excludes this operation from the document generation. | | ||
| `@ApiExtraModels` | Controller | Adds extra models to be loaded in the schema. | | ||
| `@ApiHeader` | Controller / Method | Adds a header parameter to the operation(s). | | ||
| `@ApiOperation` | Method | Configures an operation. | | ||
| `@ApiParam` | Controller / Method | Adds a path parameter to the operation(s). | | ||
| `@ApiProperty` | Model | Configures a schema property property. | | ||
| `@ApiQuery` | Controller / Method | Adds a query parameter to the operation(s). | | ||
| `@ApiResponse` | Controller / Method | Adds a response to the operation(s). | | ||
| `@ApiSecurity` | Controller / Method | Sets the security scheme to the operation(s). | | ||
| `@ApiTags` | Controller / Method | Adds tags to the operation(s). | |
Oops, something went wrong.