Skip to content
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

error: Cannot read property 'length' of undefined #19

Open
amedhat3 opened this issue Jul 5, 2016 · 0 comments
Open

error: Cannot read property 'length' of undefined #19

amedhat3 opened this issue Jul 5, 2016 · 0 comments

Comments

@amedhat3
Copy link

amedhat3 commented Jul 5, 2016

I'm trying to use apidoc-swagger to convert apidoc project to swagger ui:

This is the result I'm getting after
$apidoc -i documentation/apis/rest -o documentation/generated/rest/ -f .adoc -v

verbose: apidoc-generator name: apidoc verbose: apidoc-generator version: 0.16.1 verbose: apidoc-core version: 0.7.1 verbose: apidoc-spec version: 0.2.0 verbose: run parser verbose: parse file: documentation/apis/rest/_apidoc.adoc verbose: parse file: documentation/apis/rest/errors.adoc verbose: parse file: documentation/apis/rest/parameters.adoc verbose: parse file: documentation/apis/rest/v1_0/EmailTemplatesLanguageRestController.adoc verbose: parse file: documentation/apis/rest/v1_0/EmailTemplatesRestController.adoc verbose: parse file: documentation/apis/rest/v1_0/FormsFieldsRestController.adoc verbose: parse file: documentation/apis/rest/v1_0/FormsRestController.adoc verbose: run worker verbose: worker preProcess: apierrorstructure verbose: worker preProcess: apierrortitle verbose: worker preProcess: apigroup verbose: worker preProcess: apiheaderstructure verbose: worker preProcess: apiheadertitle verbose: worker preProcess: apiparamtitle verbose: worker preProcess: apipermission verbose: worker preProcess: apistructure verbose: worker preProcess: apisuccessstructure verbose: worker preProcess: apisuccesstitle verbose: worker preProcess: apiuse verbose: worker postProcess: apierrorstructure verbose: worker postProcess: apierrortitle verbose: worker postProcess: apigroup verbose: worker postProcess: apiheaderstructure verbose: worker postProcess: apiheadertitle verbose: worker postProcess: apiname verbose: worker postProcess: apiparamtitle verbose: worker postProcess: apipermission verbose: worker postProcess: apisamplerequest verbose: worker postProcess: apistructure verbose: worker postProcess: apisuccessstructure verbose: worker postProcess: apisuccesstitle verbose: worker postProcess: apiuse verbose: run filter verbose: filter postFilter: apierror verbose: filter postFilter: apiheader verbose: filter postFilter: apiparam verbose: filter postFilter: apisuccess verbose: create dir: documentation/generated/rest/ verbose: copy template /usr/lib/node_modules/apidoc/template/ to: documentation/generated/rest/ verbose: write json file: documentation/generated/rest/api_data.json verbose: write js file: documentation/generated/rest/api_data.js verbose: write json file: documentation/generated/rest/api_project.json verbose: write js file: documentation/generated/rest/api_project.js info: Done.

And this is the result I get from
$apidoc-swagger -i documentation/apis/rest -o documentation/generated/rest/swagger -f .adoc -v

verbose: apidoc-generator name: apidoc-swagger verbose: apidoc-generator version: 0.2.2 verbose: apidoc-core version: 0.3.1 verbose: apidoc-spec version: 0.2.0 verbose: run parser verbose: parse file: documentation/apis/rest/_apidoc.adoc verbose: parse file: documentation/apis/rest/errors.adoc verbose: parse file: documentation/apis/rest/parameters.adoc verbose: parse file: documentation/apis/rest/v1_0/EmailTemplatesLanguageRestController.adoc verbose: parse file: documentation/apis/rest/v1_0/EmailTemplatesRestController.adoc verbose: parse file: documentation/apis/rest/v1_0/FormsFieldsRestController.adoc verbose: parse file: documentation/apis/rest/v1_0/FormsRestController.adoc verbose: run worker verbose: worker preProcess: apierrorstructure verbose: worker preProcess: apierrortitle verbose: worker preProcess: apigroup verbose: worker preProcess: apiheaderstructure verbose: worker preProcess: apiheadertitle verbose: worker preProcess: apiparamtitle verbose: worker preProcess: apipermission verbose: worker preProcess: apistructure verbose: worker preProcess: apisuccessstructure verbose: worker preProcess: apisuccesstitle verbose: worker preProcess: apiuse verbose: worker preProcess: deprecatedApiErrorTitle verbose: worker preProcess: deprecatedApiHeaderTitle verbose: worker preProcess: deprecatedApiParamTitle verbose: worker preProcess: deprecatedApiSuccessTitle verbose: worker postProcess: apierrorstructure verbose: worker postProcess: apierrortitle verbose: worker postProcess: apigroup verbose: worker postProcess: apiheaderstructure verbose: worker postProcess: apiheadertitle verbose: worker postProcess: apiname verbose: worker postProcess: apiparamtitle verbose: worker postProcess: apipermission verbose: worker postProcess: apisamplerequest verbose: worker postProcess: apistructure verbose: worker postProcess: apisuccessstructure verbose: worker postProcess: apisuccesstitle verbose: worker postProcess: apiuse verbose: worker postProcess: deprecatedApiErrorTitle verbose: worker postProcess: deprecatedApiHeaderTitle verbose: worker postProcess: deprecatedApiParamTitle verbose: worker postProcess: deprecatedApiSuccessTitle verbose: run filter verbose: filter postFilter: apierror verbose: filter postFilter: apiheader verbose: filter postFilter: apiparam verbose: filter postFilter: apisuccess error: Cannot read property 'length' of undefined

Any idea on how can I fix this issue, or how can I investigate more?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant