-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
item must not be blank #21
Comments
Same error here 😞
Any solutions ? |
I also ran into this error. This is a pretty big json file, so it would be helpful to know which value is causing the error. Please advise.
|
In my case, this was caused by having a custom action that does not use a standard DRF renderer to return a StreamingHttpResponse instead of something more standard like The swagger2markup tool did not like this so it bailed. I fixed this by manually changing the above to just read: But probably it is better to specify the actual mimetype you expect to return in your response. |
java -jar ./build/libs/swagger2markup-cli-1.3.3.jar convert -i wallet-server.yml -d ./output
02:49:47.261 [main] INFO io.swagger.parser.Swagger20Parser - reading from /Users/shiv/Development/tbca/swagger/swagger2markup-cli/wallet-server.yml
02:49:47.988 [main] DEBUG i.g.s.i.document.PathsDocument - Generate examples is disabled.
02:49:47.988 [main] DEBUG i.g.s.i.document.PathsDocument - Create separated operation files is disabled.
02:49:47.989 [main] DEBUG i.g.s.i.document.DefinitionsDocument - Create separated definition files is disabled.
02:49:48.319 [main] INFO i.g.s.m.b.i.asciidoc.AsciiDocBuilder - Markup document written to: /Users/shiv/Development/tbca/swagger/swagger2markup-cli/./output/overview.adoc
02:49:48.457 [main] DEBUG i.g.s.i.document.PathsDocument - Operation processed : 'submitMerchantChargeRequest' (normalized id = 'submitMerchantChargeRequest')
02:49:48.505 [main] DEBUG i.g.s.i.document.PathsDocument - Operation processed : 'submitMerchantDepositRequest' (normalized id = 'submitMerchantDepositRequest')
02:49:48.540 [main] DEBUG i.g.s.i.document.PathsDocument - Operation processed : 'submitMerchantRefundRequest' (normalized id = 'submitMerchantRefundRequest')
02:49:48.563 [main] DEBUG i.g.s.i.document.PathsDocument - Operation processed : 'submitMerchantRefundCreditRequest' (normalized id = 'submitMerchantRefundCreditRequest')
02:49:48.591 [main] DEBUG i.g.s.i.document.PathsDocument - Operation processed : 'submitMerchantRemitRequest' (normalized id = 'submitMerchantRemitRequest')
02:49:48.615 [main] DEBUG i.g.s.i.document.PathsDocument - Operation processed : 'submitMerchantRequestForPayment' (normalized id = 'submitMerchantRequestForPayment')
02:49:48.636 [main] DEBUG i.g.s.i.document.PathsDocument - Operation processed : 'submitMerchantTransferCreditRequest' (normalized id = 'submitMerchantTransferCreditRequest')
02:49:48.656 [main] DEBUG i.g.s.i.document.PathsDocument - Operation processed : 'submitMerchantWithdrawRequest' (normalized id = 'submitMerchantWithdrawRequest')
02:49:48.679 [main] DEBUG i.g.s.i.document.PathsDocument - Operation processed : 'getMerchantBalances' (normalized id = 'getMerchantBalances')
02:49:48.702 [main] DEBUG i.g.s.i.document.PathsDocument - Operation processed : 'getMerchantTransactionHistory' (normalized id = 'getMerchantTransactionHistory')
02:49:48.714 [main] DEBUG i.g.s.i.document.PathsDocument - Operation processed : 'getMerchantUsers' (normalized id = 'getMerchantUsers')
02:49:48.733 [main] DEBUG i.g.s.i.document.PathsDocument - Operation processed : 'getUserMerchantBalances' (normalized id = 'getUserMerchantBalances')
Exception in thread "main" java.lang.IllegalArgumentException: item must not be blank
at org.apache.commons.lang3.Validate.notBlank(Validate.java:451)
at io.github.swagger2markup.markup.builder.internal.AbstractMarkupDocBuilder.unorderedListItem(AbstractMarkupDocBuilder.java:333)
at io.github.swagger2markup.markup.builder.internal.AbstractMarkupDocBuilder.unorderedList(AbstractMarkupDocBuilder.java:327)
at io.github.swagger2markup.markup.builder.internal.asciidoc.AsciiDocBuilder.unorderedList(AsciiDocBuilder.java:140)
at io.github.swagger2markup.internal.component.ConsumesComponent.apply(ConsumesComponent.java:44)
at io.github.swagger2markup.internal.component.PathOperationComponent.buildConsumesSection(PathOperationComponent.java:290)
at io.github.swagger2markup.internal.component.PathOperationComponent.apply(PathOperationComponent.java:110)
at io.github.swagger2markup.internal.document.PathsDocument.applyPathOperationComponent(PathsDocument.java:223)
at io.github.swagger2markup.internal.document.PathsDocument.buildOperation(PathsDocument.java:207)
at io.github.swagger2markup.internal.document.PathsDocument.lambda$buildsPathsSection$0(PathsDocument.java:119)
at java.util.ArrayList.forEach(ArrayList.java:1257)
at io.github.swagger2markup.internal.document.PathsDocument.buildsPathsSection(PathsDocument.java:119)
at io.github.swagger2markup.internal.document.PathsDocument.apply(PathsDocument.java:103)
at io.github.swagger2markup.Swagger2MarkupConverter.applyPathsDocument(Swagger2MarkupConverter.java:197)
at io.github.swagger2markup.Swagger2MarkupConverter.toFolder(Swagger2MarkupConverter.java:182)
at io.github.swagger2markup.cli.Application.run(Application.java:86)
at io.github.swagger2markup.cli.Application.main(Application.java:61)
wallet-server.txt
The text was updated successfully, but these errors were encountered: