[teiid-issues] [JBoss JIRA] (TEIID-5187) Swagger translator does not handle null procedure parameters

Steven Hawkins (JIRA) issues at jboss.org
Wed Jan 3 15:22:00 EST 2018


     [ https://issues.jboss.org/browse/TEIID-5187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steven Hawkins resolved TEIID-5187.
-----------------------------------
    Resolution: Done


Nullablity is not supported in openapi until v3 https://swagger.io/docs/specification/describing-parameters/

So rather than marking parameters as nullable when they are not required, we'll use the omit option for default handling.

If an actual null value is passed, it will produce an exception - which will be more informational than the NPE previously produced.

> Swagger translator does not handle null procedure parameters
> ------------------------------------------------------------
>
>                 Key: TEIID-5187
>                 URL: https://issues.jboss.org/browse/TEIID-5187
>             Project: Teiid
>          Issue Type: Bug
>          Components: Misc. Connectors
>            Reporter: Steven Hawkins
>            Assignee: Steven Hawkins
>             Fix For: 10.1
>
>
> If null is passed as a parameter value for anything other than a body parameter, the swagger translator will throw a null pointer exception.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the teiid-issues mailing list