Is there any way how to use the @Extension 
<http://docs.swagger.io/swagger-core/v2.0.0-RC3/apidocs/index.html?io/swagger/v3/oas/annotations/extensions/Extension.html>
 
annotation in OpenAPI? I expected this is used by OpenAPI Extensions 
<https://swagger.io/docs/specification/openapi-extensions/> but my x- 
definitions are not translated to any annotation in Swagger Editor even not 
in Swagger Code generator (using lang jaxrs-cxf), here is my OA def example:

swagger: '2.0'
> info:
>   version: 1.0.0
>   title: Sample Server
> paths:
>   '/list/{listName}':
>     get:
>       consumes:
>         - application/json
>       produces:
>         - application/json
>       parameters:
>         - name: listName
>           in: path
>           description: Name of list
>           required: true
>           type: string
>       responses:
>         '200':
>           description: successful operation
>           schema:
>             type: array
>             items:
>               $ref: '#/definitions/Element'
>         '400':
>           description: Invalid list number
> definitions:
>   Element:
>     description: Single Element
>     x-extension-sample: 
>         property1: value1
>     type: object
>     required:
>       - number
>       - text
>     properties:
>       number:
>         description: Number of element
>         x-extension-sample-property:
>           property2: value2
>         type: integer
>         format: int64
>       text:
>         description: Text of element
>         x-extension-sample-property:
>           property3: value3
>         type: string


Thank for any help! 

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to