Skip to content

Commit

Permalink
Tests; progress on getting tests to pass again
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeRalphson committed Jun 27, 2018
1 parent e9baad7 commit 7a918c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ script:
- travis_wait node $nflags packages/swagger2openapi/testRunner -q -l openapi-directory/APIs/
- travis_wait node $nflags packages/swagger2openapi/testRunner -q openapi-definitions/
- travis_wait node $nflags packages/swagger2openapi/testRunner -q -n openapi3-examples/pass
- travis_wait node $nflags packages/swagger2openapi/testRunner -q -r -n -f openapi3-examples/fail
- travis_wait node $nflags packages/swagger2openapi/testRunner -q -r -n -f openapi3-examples/fail .
- node $nflags packages/swagger2openapi/testRunner -q -r test/s2o-test
4 changes: 4 additions & 0 deletions packages/swagger2openapi/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ function fixUpSubSchema(schema,parent,options) {
// TODO if we have a nested properties (object inside an object) and the
// *parent* type is not set, force it to object
// TODO if default is set but type is not set, force type to typeof default

if (schema.xml && typeof schema.xml.namespace === 'string') {
if (!schema.xml.namespace) delete schema.xml.namespace;
}
}

function fixUpSubSchemaExtensions(schema,parent) {
Expand Down

0 comments on commit 7a918c6

Please sign in to comment.