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

feat(rest): implement query parameter validation (issue 1573) #2307

Closed
wants to merge 41 commits into from

Commits on Jan 30, 2019

  1. feat(rest): validate query parameters against their schema

    openapi spec allows developers to provide additional restrictions on input parameters via parameter
    schema. For example, pageSize can include schema restrictions
    
    fix loopbackio#1573
    YaelGit committed Jan 30, 2019
    Configuration menu
    Copy the full SHA
    72594eb View commit details
    Browse the repository at this point in the history
  2. feat(rest): validate query parameters against their schema

    openapi spec allows developers to provide additional restrictions on input parameters via parameter
    schema. For example, pageSize can include schema restrictions
    
    fix loopbackio#1573
    YaelGit committed Jan 30, 2019
    Configuration menu
    Copy the full SHA
    0e04254 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8e3248c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a4c2086 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2019

  1. build(testlab): move test files to src/__tests__

    This change greatly simplifies our build and project setup.
    
    - Source files are compiled from `src/{foo}` to `dist/{foo}`, the same
      pattern is applied to test files too.
    
    - Both TypeScript sources and JavaScript output are stored in the same
      path relative to project root. This makes it much easier to refer
      to test fixtures.
    
    This change is also enabling future improvements, for example TypeScript
    project references and migration to jest test runner.
    bajtos committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    066d525 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4c6b176 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f946d48 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0121c10 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    181e1f1 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0710055 View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2019

  1. build: move test files to src/__tests__ in example apps

    - Source files are compiled from `src/{foo}` to `dist/{foo}`, the same
      pattern is applied to test files too.
    
    - Both TypeScript sources and JavaScript output are stored in the same
      path relative to project root. This makes it much easier to refer
      to test fixtures.
    
    This is a follow-up for 066d525.
    bajtos committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    91a37dc View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2019

  1. Configuration menu
    Copy the full SHA
    a624b95 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0e92b88 View commit details
    Browse the repository at this point in the history
  3. feat(cli): use a custom repository base class

    Allow the user to specify a custom Repository class to inherit from.
    CLI supports custom repository name
    * via an interactive prompt
    * via CLI options
    * via JSON config
    
    Two tests modified to use the new parameter to pass
    Modified tests:
    * generates a kv repository from default model
    * generates a kv repository from decorator defined model
    gczobel-f5 authored and bajtos committed Feb 4, 2019
    Configuration menu
    Copy the full SHA
    edbbe88 View commit details
    Browse the repository at this point in the history
  4. chore: add required config for greenkeeper integration

    The greenkeeper.json is now automatically updated as part of
    `npm install` based on lerna packages.
    raymondfeng committed Feb 4, 2019
    Configuration menu
    Copy the full SHA
    4695e3a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    857868e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    bfe8c27 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a8a409c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    84c6a88 View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2019

  1. build: move test files to src/__tests__ in packages

    - Source files are compiled from `src/{foo}` to `dist/{foo}`, the same
      pattern is applied to test files too.
    
    - Both TypeScript sources and JavaScript output are stored in the same
      path relative to project root. This makes it much easier to refer
      to test fixtures.
    
    This is a follow-up for 066d525 and 91a37dc.
    bajtos committed Feb 5, 2019
    Configuration menu
    Copy the full SHA
    1a6ac91 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    89340b0 View commit details
    Browse the repository at this point in the history
  3. feat(cli): scaffold test files to src/__tests__

    Rework our project templates to place test files to `src/__tests__`.
    
    - Source files are compiled from `src/{foo}` to `dist/{foo}`, the same
      pattern is applied to test files too.
    
    - Both TypeScript sources and JavaScript output are stored in the same
      path relative to project root. This makes it much easier to refer
      to test fixtures.
    
    This is a follow-up for 066d525, 91a37dc and 1a6ac91.
    bajtos committed Feb 5, 2019
    Configuration menu
    Copy the full SHA
    d3a3bea View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    51cba45 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a3da024 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a54fbf1 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    bf26cc3 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    75731f9 View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2019

  1. Configuration menu
    Copy the full SHA
    5042698 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b5f12be View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2019

  1. Configuration menu
    Copy the full SHA
    6ef5d85 View commit details
    Browse the repository at this point in the history
  2. fix: update to the most recent lodash version

    jannyHou authored and Janny committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    65ee865 View commit details
    Browse the repository at this point in the history
  3. chore: publish release

     - @loopback/[email protected]
     - @loopback/[email protected]
     - @loopback/[email protected]
     - @loopback/[email protected]
     - @loopback/[email protected]
     - @loopback/[email protected]
     - @loopback/[email protected]
     - @loopback/[email protected]
     - @loopback/[email protected]
     - @loopback/[email protected]
     - @loopback/[email protected]
     - @loopback/[email protected]
     - @loopback/[email protected]
     - @loopback/[email protected]
     - @loopback/[email protected]
     - @loopback/[email protected]
     - @loopback/[email protected]
     - @loopback/[email protected]
     - @loopback/[email protected]
     - @loopback/[email protected]
     - @loopback/[email protected]
     - @loopback/[email protected]
     - @loopback/[email protected]
     - @loopback/[email protected]
     - @loopback/[email protected]
     - @loopback/[email protected]
    dhmlau committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    596a143 View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2019

  1. feat(rest): validate query parameters against their schema

    openapi spec allows developers to provide additional restrictions on input parameters via parameter
    schema. For example, pageSize can include schema restrictions
    
    fix loopbackio#1573
    YaelGit committed Feb 11, 2019
    Configuration menu
    Copy the full SHA
    95e919e View commit details
    Browse the repository at this point in the history
  2. feat(rest): validate query parameters against their schema

    openapi spec allows developers to provide additional restrictions on input parameters via parameter
    schema. For example, pageSize can include schema restrictions
    
    fix loopbackio#1573
    YaelGit committed Feb 11, 2019
    Configuration menu
    Copy the full SHA
    112847b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f14bd93 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7707fa5 View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2019

  1. feat(rest): validate query parameters against their schema

    openapi spec allows developers to provide additional restrictions on input parameters via parameter
    schema. For example, pageSize can include schema restrictions
    
    fix loopbackio#1573
    YaelGit committed Feb 12, 2019
    Configuration menu
    Copy the full SHA
    bf22e5c View commit details
    Browse the repository at this point in the history
  2. feat(rest): validate query parameters against their schema

    openapi spec allows developers to provide additional restrictions on input parameters via parameter
    schema. For example, pageSize can include schema restrictions
    
    fix loopbackio#1573
    YaelGit committed Feb 12, 2019
    Configuration menu
    Copy the full SHA
    131ccd9 View commit details
    Browse the repository at this point in the history
  3. feat(rest): validate query parameters against their schema

    openapi spec allows developers to provide additional restrictions on input parameters via parameter
    schema. For example, pageSize can include schema restrictions
    
    fix loopbackio#1573
    YaelGit committed Feb 12, 2019
    Configuration menu
    Copy the full SHA
    1fe7f9c View commit details
    Browse the repository at this point in the history
  4. feat(rest): validate query parameters against their schema

    openapi spec allows developers to provide additional restrictions on input parameters via parameter
    schema. For example, pageSize can include schema restrictions
    
    fix loopbackio#1573
    YaelGit committed Feb 12, 2019
    Configuration menu
    Copy the full SHA
    14d7909 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c2c1c07 View commit details
    Browse the repository at this point in the history