Skip to content

Commit

Permalink
feat(rest): validate query parameters against their schema
Browse files Browse the repository at this point in the history
openapi spec allows developers to provide additional restrictions on input parameters via parameter
schema. For example, pageSize can include schema restrictions

fix loopbackio#1573
  • Loading branch information
YaelGit committed Feb 12, 2019
1 parent 1fe7f9c commit 14d7909
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/rest/src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
SchemasObject,
} from '@loopback/openapi-v3-types';
import * as debugFactory from 'debug';
//import {RequestBody, RequestBodyParser,RequestQueryParser} from './body-parsers';
import {RequestBody, RequestBodyParser} from './body-parsers';
import {coerceParameter} from './coercion/coerce-parameter';
import {RestHttpErrors} from './rest-http-error';
Expand All @@ -32,7 +31,6 @@ export async function parseOperationArgs(
request: Request,
route: ResolvedRoute,
requestBodyParser: RequestBodyParser = new RequestBodyParser(),

): Promise<OperationArgs> {
debug('Parsing operation arguments for route %s', route.describe());
const operationSpec = route.spec;
Expand Down

0 comments on commit 14d7909

Please sign in to comment.