swagger-php-annotation

Swagger-PHP v3.x Annotation extension for VS Code.
Features
- Completion snippet after
/** above a Restful API function (ex. index, store, show, update, destroy)
- Completion of OpenAPI httpMethod (ex.
Get, Post, Put, Delete)
- Completion of OpenAPI tags (ex.
Parameter, Response, JsonContent, Schema, Items, Property, RequestBody)
- Add indent when pressing enter
- Decorator of swagger-php annotation

Requirements
This extension has no dependencies.
Extension Settings
completions.type: set OA (OpenAPI 3.x) or SWG (Swagger 2.x)
"completions.type": "OA"
decorator.regexes: set to decoration types
"(?:\\* )(@OA\\\\\\w+)": {
"decorationType": {
"light": { "color": "#cb85cc" },
"dark": { "color": "#cb85cc" }
}
},
"(?:\\* \\s+)(@OA\\\\\\w+)": {
"decorationType": {
"light": { "color": "#6c83bd" },
"dark": { "color": "#6c83bd" }
}
},
"(?:\\*\\s+)(\\w+)(?:=)": {
"decorationType": {
"light": { "color": "#998554" },
"dark": { "color": "#998554" }
}
}
See CHANGELOG for release history.
| |