[jira] [Commented] (OPENMEETINGS-2664) Fix CONSUMES tag so that generated swagger understands FormParams as multipart-form
[ https://issues.apache.org/jira/browse/OPENMEETINGS-2664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17417283#comment-17417283 ] Sebastian Wagner commented on OPENMEETINGS-2664: I've opened a new thread here: https://community.smartbear.com/t5/Swagger-Open-Source-Tools/How-to-add-Properties-properties-in-Schema-annotation/m-p/222920#M2073 > Fix CONSUMES tag so that generated swagger understands FormParams as > multipart-form > --- > > Key: OPENMEETINGS-2664 > URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2664 > Project: Openmeetings > Issue Type: Improvement > Components: Documentation, SOAP/REST API >Affects Versions: 7.0.0 >Reporter: Sebastian Wagner >Assignee: Sebastian Wagner >Priority: Major > Fix For: 7.0.0 > > > The generated swagger is wrong as it thinks @ FormParam is a json body, while > it is expected as multipart/form-data parameters -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (OPENMEETINGS-2664) Fix CONSUMES tag so that generated swagger understands FormParams as multipart-form
[ https://issues.apache.org/jira/browse/OPENMEETINGS-2664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17417282#comment-17417282 ] Sebastian Wagner commented on OPENMEETINGS-2664: Alternatively typing out the request Body also doesn't work as it doesn't accept multiple Parameters. {code:java} requestBody = @RequestBody( content = @Content( mediaType = MediaType.MULTIPART_FORM_DATA, schema = @Schema( type = "object", requiredProperties = { "user", "options" }, // can't define @Properties here ) ) ), {code} There is some other complaints about this: [https://community.smartbear.com/t5/Swagger-Open-Source-Tools/How-to-add-Properties-properties-in-Schema-annotation/td-p/197143] There is some suggestion for a work around. But I don't think that work around is correct. > Fix CONSUMES tag so that generated swagger understands FormParams as > multipart-form > --- > > Key: OPENMEETINGS-2664 > URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2664 > Project: Openmeetings > Issue Type: Improvement > Components: Documentation, SOAP/REST API >Affects Versions: 7.0.0 >Reporter: Sebastian Wagner >Assignee: Sebastian Wagner >Priority: Major > Fix For: 7.0.0 > > > The generated swagger is wrong as it thinks @ FormParam is a json body, while > it is expected as multipart/form-data parameters -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (OPENMEETINGS-2664) Fix CONSUMES tag so that generated swagger understands FormParams as multipart-form
[ https://issues.apache.org/jira/browse/OPENMEETINGS-2664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17413694#comment-17413694 ] ASF subversion and git services commented on OPENMEETINGS-2664: --- Commit feb25454c7b60f725308f3c2dd5d97299c297c7f in openmeetings's branch refs/heads/master from Sebastian Wagner [ https://gitbox.apache.org/repos/asf?p=openmeetings.git;h=feb2545 ] Revert "OPENMEETINGS-2664 Fix consumes tag so generated swagger is correct." This reverts commit e01c014430f0691587a7f5ddf35f9c774aac415b. > Fix CONSUMES tag so that generated swagger understands FormParams as > multipart-form > --- > > Key: OPENMEETINGS-2664 > URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2664 > Project: Openmeetings > Issue Type: Improvement > Components: Documentation, SOAP/REST API >Affects Versions: 7.0.0 >Reporter: Sebastian Wagner >Assignee: Sebastian Wagner >Priority: Major > Fix For: 7.0.0 > > > The generated swagger is wrong as it thinks @ FormParam is a json body, while > it is expected as multipart/form-data parameters -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (OPENMEETINGS-2664) Fix CONSUMES tag so that generated swagger understands FormParams as multipart-form
[ https://issues.apache.org/jira/browse/OPENMEETINGS-2664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17413459#comment-17413459 ] ASF subversion and git services commented on OPENMEETINGS-2664: --- Commit 65cceb32574227146a668daa1b94b3a99ee148fb in openmeetings's branch refs/heads/master from Sebastian Wagner [ https://gitbox.apache.org/repos/asf?p=openmeetings.git;h=65cceb3 ] Merge pull request #151 from apache/feature/OPENMEETINGS-2664-fix-consumes-tag-for-rest-apis OPENMEETINGS-2664 Fix consumes tag so generated swagger is correct. > Fix CONSUMES tag so that generated swagger understands FormParams as > multipart-form > --- > > Key: OPENMEETINGS-2664 > URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2664 > Project: Openmeetings > Issue Type: Improvement > Components: Documentation, SOAP/REST API >Affects Versions: 7.0.0 >Reporter: Sebastian Wagner >Assignee: Sebastian Wagner >Priority: Major > Fix For: 7.0.0 > > > The generated swagger is wrong as it thinks @ FormParam is a json body, while > it is expected as multipart/form-data parameters -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (OPENMEETINGS-2664) Fix CONSUMES tag so that generated swagger understands FormParams as multipart-form
[ https://issues.apache.org/jira/browse/OPENMEETINGS-2664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17413458#comment-17413458 ] ASF subversion and git services commented on OPENMEETINGS-2664: --- Commit e01c014430f0691587a7f5ddf35f9c774aac415b in openmeetings's branch refs/heads/master from Sebastian Wagner [ https://gitbox.apache.org/repos/asf?p=openmeetings.git;h=e01c014 ] OPENMEETINGS-2664 Fix consumes tag so generated swagger is correct. > Fix CONSUMES tag so that generated swagger understands FormParams as > multipart-form > --- > > Key: OPENMEETINGS-2664 > URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2664 > Project: Openmeetings > Issue Type: Improvement > Components: Documentation, SOAP/REST API >Affects Versions: 7.0.0 >Reporter: Sebastian Wagner >Assignee: Sebastian Wagner >Priority: Major > Fix For: 7.0.0 > > > The generated swagger is wrong as it thinks @ FormParam is a json body, while > it is expected as multipart/form-data parameters -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (OPENMEETINGS-2664) Fix CONSUMES tag so that generated swagger understands FormParams as multipart-form
[ https://issues.apache.org/jira/browse/OPENMEETINGS-2664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17413457#comment-17413457 ] ASF subversion and git services commented on OPENMEETINGS-2664: --- Commit e01c014430f0691587a7f5ddf35f9c774aac415b in openmeetings's branch refs/heads/feature/OPENMEETINGS-2664-fix-consumes-tag-for-rest-apis from Sebastian Wagner [ https://gitbox.apache.org/repos/asf?p=openmeetings.git;h=e01c014 ] OPENMEETINGS-2664 Fix consumes tag so generated swagger is correct. > Fix CONSUMES tag so that generated swagger understands FormParams as > multipart-form > --- > > Key: OPENMEETINGS-2664 > URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2664 > Project: Openmeetings > Issue Type: Improvement > Components: Documentation, SOAP/REST API >Affects Versions: 7.0.0 >Reporter: Sebastian Wagner >Assignee: Sebastian Wagner >Priority: Major > Fix For: 7.0.0 > > > The generated swagger is wrong as it thinks @ FormParam is a json body, while > it is expected as multipart/form-data parameters -- This message was sent by Atlassian Jira (v8.3.4#803005)