[teiid-issues] [JBoss JIRA] (TEIID-4051) Swagger metadata includes internal java constructs

Steven Hawkins (Jira) issues at jboss.org
Fri Feb 1 08:51:00 EST 2019


    [ https://issues.jboss.org/browse/TEIID-4051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13690149#comment-13690149 ] 

Steven Hawkins commented on TEIID-4051:
---------------------------------------

I can confirm the StreamingOutput issue still happens with swagger 1.5.21 (we are currently at 1.5.17).  Additionally the swagger produced by IntegrationTestRestWebserviceGeneration fails validation in editor.swagger.io:

Schema error should have required property 'info'
missingProperty: info

Semantic error at paths./View/g1simplepost.post
Operations with Parameters of "in: formData" must include "application/x-www-form-urlencoded" or "multipart/form-data" in their "consumes" property



> Swagger metadata includes internal java constructs
> --------------------------------------------------
>
>                 Key: TEIID-4051
>                 URL: https://issues.jboss.org/browse/TEIID-4051
>             Project: Teiid
>          Issue Type: Quality Risk
>          Components: Server
>    Affects Versions: 8.12.x
>            Reporter: Steven Hawkins
>            Assignee: Steven Hawkins
>            Priority: Major
>             Fix For: 12.1
>
>
> From IntegrationTestRestWarGeneration the swagger metadata includes definitions for Statement, ResultSet, StreamingOutput, etc.:
> ...
>   InputStream:
>     type: "object"
>   Statement:
>     type: "object"
>     properties:
>       queryTimeout:
>         type: "integer"
>         format: "int32"
>       closed:
>         type: "boolean"
>         default: false
>       resultSet:
>         $ref: "#/definitions/ResultSet"
> ...



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the teiid-issues mailing list