Giter Site home page Giter Site logo

Comments (6)

abtris avatar abtris commented on June 15, 2024

Hi,
try this apiary preview --path=./features/fixtures/apiary.apib --server and all works.

You need provide path to API Description Document, without them is output empty.

from apiary-client.

RichardLitt avatar RichardLitt commented on June 15, 2024

Hey @abtris: That didn't fix this; it's still only shows the grey bar.

from apiary-client.

abtris avatar abtris commented on June 15, 2024

Can you check with drafter is your document is valid?

from apiary-client.

RichardLitt avatar RichardLitt commented on June 15, 2024

I'm not sure how to do that. I ran drafter, and it showed me the following:

🐕  drafter -t ast apiary.apib 

error: (4)  no property name
warning: (13)  duplicate definition of 'Content-Type' header :1540:4;1552:64;1624:65;1697:31;1736:24;1768:27;1803:20;1831:36;1875:27;1910:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :1540:4;1552:64;1624:65;1697:31;1736:24;1768:27;1803:20;1831:36;1875:27;1910:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :2421:4;2433:64;2505:65;2578:24;2610:27;2645:20;2673:36;2717:27;2752:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :3480:4;3492:64;3564:65;3637:24;3669:27;3704:20;3732:36;3776:27;3811:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :4375:4;4387:64;4459:65;4532:24;4564:27;4599:20;4627:36;4671:27;4706:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :5348:4;5360:64;5432:65;5505:24;5537:27;5572:20;5600:36;5644:27;5679:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :6349:4;6361:64;6433:65;6506:24;6538:27;6573:20;6601:36;6645:27;6680:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :7242:4;7254:64;7326:65;7399:24;7431:27;7466:20;7494:36;7538:27;7573:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :7952:4;7964:64;8036:65;8109:24;8141:27;8176:20;8204:36;8248:18;8274:27;8309:4
warning: (13)  duplicate definition of 'Content-Type' header :10046:4;10058:64;10130:65;10203:31;10242:26;10276:24;10308:27;10343:36;10387:27;10422:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :10046:4;10058:64;10130:65;10203:31;10242:26;10276:24;10308:27;10343:36;10387:27;10422:4
warning: (13)  duplicate definition of 'Content-Type' header :11742:4;11754:64;11826:65;11899:31;11938:26;11972:24;12004:27;12039:36;12083:27;12118:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :11742:4;11754:64;11826:65;11899:31;11938:26;11972:24;12004:27;12039:36;12083:27;12118:4
warning: (13)  duplicate definition of 'Content-Type' header :12631:4;12643:64;12715:65;12788:31;12827:26;12861:24;12893:27;12928:36;12972:27;13007:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :12631:4;12643:64;12715:65;12788:31;12827:26;12861:24;12893:27;12928:36;12972:27;13007:4
warning: (13)  duplicate definition of 'Content-Type' header :13420:4;13432:64;13504:65;13577:31;13616:26;13650:24;13682:27;13717:36;13761:27;13796:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :13420:4;13432:64;13504:65;13577:31;13616:26;13650:24;13682:27;13717:36;13761:27;13796:4
warning: (13)  duplicate definition of 'Content-Type' header :14303:4;14315:64;14387:65;14460:31;14499:26;14533:24;14565:27;14600:36;14644:27;14679:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :14303:4;14315:64;14387:65;14460:31;14499:26;14533:24;14565:27;14600:36;14644:27;14679:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :15225:4;15237:64;15309:65;15382:31;15421:26;15455:24;15487:27;15522:36;15566:27;15601:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :16164:4;16176:64;16248:65;16321:31;16360:26;16394:24;16426:27;16461:36;16505:27;16540:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :17142:4;17154:64;17226:65;17299:31;17338:26;17372:24;17404:27;17439:36;17483:27;17518:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :19905:4;19917:64;19989:65;20062:31;20101:24;20133:27;20168:36;20212:27;20247:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :21567:4;21579:64;21651:65;21724:31;21763:24;21795:27;21830:36;21874:27;21909:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :22453:4;22465:25;22498:24;22530:27;22565:19;22592:36;22636:27;22671:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :23927:4;23939:64;24011:65;24084:31;24123:24;24155:27;24190:36;24234:27;24269:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :24901:4;24913:64;24985:65;25058:31;25097:24;25129:27;25164:36;25208:27;25243:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :26579:4;26591:64;26663:65;26736:31;26775:24;26807:27;26842:36;26886:27;26921:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :27462:4;27474:64;27546:65;27619:31;27658:24;27690:27;27725:36;27769:27;27804:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :30668:4;30680:64;30752:65;30825:31;30864:24;30896:27;30931:36;30975:27;31010:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :31575:4;31587:64;31659:65;31732:31;31771:24;31803:27;31838:36;31882:27;31917:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :32410:4;32422:64;32494:65;32567:31;32606:24;32638:27;32673:36;32717:27;32752:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :33373:4;33385:64;33457:65;33530:31;33569:24;33601:27;33636:36;33680:27;33715:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :34238:4;34250:64;34322:65;34395:31;34434:24;34466:27;34501:36;34545:27;34580:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :35920:4;35932:64;36004:65;36077:31;36116:24;36148:27;36183:36;36227:27;36262:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :37801:4;37813:64;37885:65;37958:31;37997:24;38029:27;38064:36;38108:27;38143:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :38518:4;38530:64;38602:65;38675:31;38714:24;38746:27;38781:36;38825:27;38860:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :40146:4;40158:64;40230:65;40303:31;40342:24;40374:27;40409:36;40453:27;40488:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :40966:4;40978:64;41050:65;41123:31;41162:24;41194:27;41229:36;41273:27;41308:4
warning: (13)  duplicate definition of 'Content-Type' header :41981:4;41993:64;42065:65;42138:31;42177:24;42209:27;42244:36;42288:27;42323:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :41981:4;41993:64;42065:65;42138:31;42177:24;42209:27;42244:36;42288:27;42323:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :43607:4;43619:31;43658:24;43690:27;43725:36;43769:27;43804:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :44441:4;44453:31;44492:24;44524:27;44559:36;44603:27;44638:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :45443:4;45455:25;45488:24;45520:27;45555:19;45582:36;45626:27;45661:4
warning: (13)  duplicate definition of 'Content-Type' header :46226:4;46238:31;46277:24;46309:27;46344:36;46388:27;46423:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :46226:4;46238:31;46277:24;46309:27;46344:36;46388:27;46423:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :48021:4;48033:64;48105:65;48178:31;48217:24;48249:27;48284:36;48328:27;48363:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :48917:4;48929:64;49001:65;49074:31;49113:24;49145:27;49180:36;49224:27;49259:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :49782:4;49794:64;49866:65;49939:31;49978:24;50010:27;50045:36;50089:27;50124:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :50676:4;50688:31;50727:24;50759:27;50794:36;50838:27;50873:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :51455:4;51467:31;51506:24;51538:27;51573:36;51617:27;51652:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :52341:4;52353:31;52392:24;52424:27;52459:36;52503:27;52538:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :54028:4;54040:64;54112:65;54185:31;54224:24;54256:27;54291:36;54335:27;54370:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :54911:4;54923:64;54995:65;55068:31;55107:24;55139:27;55174:36;55218:27;55253:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :55879:4;55891:64;55963:65;56036:31;56075:24;56107:27;56142:36;56186:27;56221:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :56824:4;56836:64;56908:65;56981:25;57014:24;57046:27;57081:19;57108:36;57152:27;57187:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :67286:4;67298:31;67337:24;67369:27;67404:20;67432:36;67476:27;67511:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :69938:4;69950:31;69989:24;70021:27;70056:20;70084:36;70128:27;70163:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :89686:4;89698:64;89770:65;89843:31;89882:26;89916:24;89948:27;89983:36;90027:27;90062:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :90524:4;90536:64;90608:65;90681:31;90720:26;90754:24;90786:27;90821:36;90865:27;90900:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :91380:4;91392:64;91464:65;91537:31;91576:26;91610:24;91642:27;91677:36;91721:27;91756:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :92322:4;92334:64;92406:65;92479:31;92518:26;92552:24;92584:27;92619:36;92663:27;92698:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :94445:4;94457:31;94496:24;94528:27;94563:36;94607:27;94642:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :95186:4;95198:31;95237:24;95269:27;95304:36;95348:27;95383:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :113399:4;113411:64;113483:65;113556:31;113595:26;113629:24;113661:27;113696:36;113740:27;113775:4
warning: (8)  unable to find the symbol `20 > 12` in the list of named types :137459:50
warning: (13)  duplicate definition of 'Transfer-Encoding' header :157054:4;157066:31;157105:24;157137:27;157172:36;157216:27;157251:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :158976:4;158988:31;159027:24;159059:27;159094:36;159138:27;159173:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :159672:4;159684:31;159723:24;159755:27;159790:36;159834:27;159869:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :160431:4;160443:31;160482:24;160514:27;160549:36;160593:27;160628:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :168597:4;168609:31;168648:24;168680:27;168715:36;168759:27;168794:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :169328:4;169340:31;169379:24;169411:27;169446:36;169490:27;169525:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :174640:4;174652:31;174691:24;174723:27;174758:36;174802:27;174837:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :175315:4;175327:31;175366:24;175398:27;175433:36;175477:27;175512:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :176415:4;176427:31;176466:24;176498:27;176533:36;176577:27;176612:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :177170:4;177182:31;177221:24;177253:27;177288:36;177332:27;177367:4
warning: (6)  missing response HTTP status code, assuming 'Response 200' :177888:9
warning: (3)  no headers specified :177902:11;177917:8;177929:8
warning: (5)  ignoring unrecognized block :217507:59
warning: (5)  ignoring unrecognized block :217570:114
warning: (3)  no parameters specified, expected a nested list of parameters, one parameter per list item :217490:195
warning: (6)  no identifier specified :221175:35
warning: (6)  no identifier specified :224467:35
warning: (5)  ignoring unrecognized block :224838:61
warning: (5)  ignoring unrecognized block :224903:116
warning: (3)  no parameters specified, expected a nested list of parameters, one parameter per list item :224821:199
warning: (13)  duplicate definition of 'Transfer-Encoding' header :229415:4;229427:64;229499:65;229572:31;229611:26;229645:24;229677:27;229712:36;229756:27;229791:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :230292:4;230304:64;230376:65;230449:31;230488:26;230522:24;230554:27;230589:36;230633:27;230668:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :231279:4;231291:64;231363:65;231436:31;231475:26;231509:24;231541:27;231576:20;231604:36;231648:27;231683:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :232467:4;232479:64;232551:65;232624:31;232663:26;232697:24;232729:27;232764:20;232792:36;232836:27;232871:4
warning: (8)  sub-types of primitive types should not have nested members :240300:46
warning: (5)  unexpected header block, expected a group, resource or an action definition, e.g. '# Group <name>', '# <resource name> [<URI>]' or '# <HTTP method> <URI>' :240494:10
warning: (13)  duplicate definition of 'Transfer-Encoding' header :244193:4;244205:64;244277:65;244350:31;244389:26;244423:24;244455:27;244490:36;244534:27;244569:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :245113:4;245125:64;245197:65;245270:31;245309:26;245343:24;245375:27;245410:36;245454:27;245489:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :260279:4;260291:64;260363:65;260436:31;260475:26;260509:24;260541:27;260576:36;260620:27;260655:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :262131:4;262143:64;262215:65;262288:31;262327:26;262361:24;262393:27;262428:36;262472:27;262507:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :263051:4;263063:64;263135:65;263208:31;263247:26;263281:24;263313:27;263348:36;263392:27;263427:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :268431:4;268443:64;268515:65;268588:31;268627:26;268661:24;268693:27;268728:36;268772:27;268807:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :270100:4;270112:64;270184:65;270257:31;270296:26;270330:24;270362:27;270397:36;270441:27;270476:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :271045:4;271057:64;271129:65;271202:31;271241:26;271275:24;271307:27;271342:36;271386:27;271421:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :272021:4;272033:64;272105:65;272178:25;272211:26;272245:24;272277:27;272312:19;272339:36;272383:27;272418:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :273195:4;273207:64;273279:65;273352:25;273385:26;273419:24;273451:27;273486:19;273513:36;273557:27;273592:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :273990:4;274002:64;274074:65;274147:25;274180:26;274214:24;274246:27;274281:19;274308:36;274352:27;274387:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :276137:4;276149:64;276221:65;276294:25;276327:26;276361:24;276393:27;276428:19;276455:36;276499:27;276534:4
warning: (13)  duplicate definition of 'Content-Type' header :276916:4;276928:64;277000:65;277073:25;277106:26;277140:24;277172:27;277207:19;277234:36;277278:27;277313:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :276916:4;276928:64;277000:65;277073:25;277106:26;277140:24;277172:27;277207:19;277234:36;277278:27;277313:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :279046:4;279058:64;279130:65;279203:25;279236:26;279270:24;279302:27;279337:19;279364:36;279408:27;279443:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :279852:4;279864:64;279936:65;280009:25;280042:26;280076:24;280108:27;280143:19;280170:36;280214:27;280249:4
warning: (13)  duplicate definition of 'Transfer-Encoding' header :280681:4;280693:31;280732:24;280764:27;280799:36;280843:27;280878:4
warning: (5)  ignorning unrecognized block :281756:245
warning: (5)  ignorning unrecognized block :282214:523

There is only one error: no property name. However, I don't know how to fix this, because it doesn't tell me where the issue is. My apib file is 11974 lines long, which probably doesn't help, but that's how I thought this should be structured. Any ideas?

The file is here, for reference: https://github.com/ipfs/http-api-spec/blob/master/apiary.apib

from apiary-client.

tu1ly avatar tu1ly commented on June 15, 2024

does problem still persist ? i'm not able to reproduce the issue.
result using https://github.com/ipfs/http-api-spec/blob/master/apiary.apib
snap142

from apiary-client.

RichardLitt avatar RichardLitt commented on June 15, 2024

Yes, this seems to work now. Must have been a bug in my spec. Thanks.

from apiary-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.