Skip to content

Commit

Permalink
type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmine DiMascio committed Dec 23, 2019
1 parent 23848a8 commit a81b6c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middlewares/parameters.ts
Expand Up @@ -154,7 +154,7 @@ export class Parameters {

this.parseObjectExplode.push({ reqField, name, properties });

function xOfProperties(schema: Schema) {
function xOfProperties(schema: Schema): string[] {
return ['allOf', 'oneOf', 'anyOf'].reduce((acc, key) => {
if (!schema.hasOwnProperty(key)) {
return acc;
Expand Down

0 comments on commit a81b6c8

Please sign in to comment.