Michael Brohl created OFBIZ-12426:
-------------------------------------

             Summary: REST-API Plugin: Errors and warnings in generated openapi 
documentation
                 Key: OFBIZ-12426
                 URL: https://issues.apache.org/jira/browse/OFBIZ-12426
             Project: OFBiz
          Issue Type: Bug
          Components: rest-api
    Affects Versions: Trunk
            Reporter: Michael Brohl
            Assignee: Michael Brohl


The generated openapi.json shows errors in [https://editor.swagger.io/]
 * "Header parameters named "Authorization" are ignored. Use the 
`securitySchemes` and `security` sections instead to define authorization."
I guess the openapi generation must be changed, investigating...
 * "Structural error at paths./....parameters.0 should have either a `schema` 
or `content` property"
the generated parameters from the service definition do not have a schema entry 
generated
 * the same applies to the WWW-Authenticate header in the responses

It also shows warnings
 * "Header parameters named "Accept" are ignored. The values for the "Accept" 
header are defined by `responses.<code>.content.<media-type>`."



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to