ERROR_UNKNOWN
damianoneill opened this issue · 1 comments
damianoneill commented
When running the generate clients, I notice the following in the javascript log output.
[main] ERROR io.swagger.codegen.DefaultCodegen - String to be sanitized is null. Default to ERROR_UNKNOWN
There is no useful information before or after in the docker logs.
[main] INFO io.swagger.parser.Swagger20Parser - reading from /work/service.swagger.json
[main] INFO io.swagger.codegen.languages.JavascriptClientCodegen - Using JS ES5 templates
[main] ERROR io.swagger.codegen.DefaultCodegen - String to be sanitized is null. Default to ERROR_UNKNOWN
[main] WARN io.swagger.codegen.DefaultGenerator - 'host' not defined in the spec. Default to 'localhost'.
[main] INFO io.swagger.codegen.AbstractGenerator - writing file /work/clients/javascript/src/model/ExampleHat.js
Can you confirm this is not a problem?
Thanks.
damianoneill commented
$ find . -type f -name "*" | xargs grep ERROR_UNKNOWN
./clients/javascript/package.json: "description": "ERROR_UNKNOWN",
./clients/javascript/src/index.js: * ERROR_UNKNOWN.<br>
$ grep -B 5 -A 5 'ERROR_UNKNOWN' ./clients/javascript/package.json
{
"name": "serviceproto",
"version": "version not set",
"description": "ERROR_UNKNOWN",
"license": "Unlicense",
"main": "src/index.js",
"scripts": {
"test": "mocha --recursive"
},
$ grep -B 4 -A 5 'ERROR_UNKNOWN' ./clients/javascript/src/index.js
}(function(ApiClient, ExampleHat, ExampleSize, HaberdasherApi) {
'use strict';
/**
* ERROR_UNKNOWN.<br>
* The <code>index</code> module provides access to constructors for all the classes which comprise the public API.
* <p>
* An AMD (recommended!) or CommonJS application will generally do something equivalent to the following:
* <pre>
* var Serviceproto = require('index'); // See note below*.