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

🐛fix: improve inferred Schema Type #12007

Merged
merged 23 commits into from Jul 1, 2022
Merged

🐛fix: improve inferred Schema Type #12007

merged 23 commits into from Jul 1, 2022

Commits on Jun 28, 2022

  1. 🏷️types: fix types

    - Correctly detect types for Schema[] and Schema in typeKey
    - Use correct ObjectId type
    
    Fixes #12002
    iammola committed Jun 28, 2022
    Copy the full SHA
    bb2ef25 View commit details
    Browse the repository at this point in the history
  2. 🏷️types: improve inferred types for arrays

    The default value for an array field is an empty array unless specifed to be undefined.
    
    This checks if the path explicitly sets the default property to `undefined`
    iammola committed Jun 28, 2022
    Copy the full SHA
    2e51745 View commit details
    Browse the repository at this point in the history
  3. ✅test: add tests

    iammola committed Jun 28, 2022
    Copy the full SHA
    73706cb View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    6277c4f View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    687d4db View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    e3679a8 View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2022

  1. Copy the full SHA
    79c9ce4 View commit details
    Browse the repository at this point in the history
  2. 🚨lint: fix indentation

    iammola committed Jun 29, 2022
    Copy the full SHA
    7d280a2 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    2f1d2d9 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    5ce27ac View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    d31aa08 View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    4123249 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2022

  1. 🐛fix: reviewed changes

    iammola committed Jun 30, 2022
    Copy the full SHA
    d12af93 View commit details
    Browse the repository at this point in the history
  2. Restore schema.test.ts

    iammola committed Jun 30, 2022
    Copy the full SHA
    4037696 View commit details
    Browse the repository at this point in the history
  3. Revert "Restore schema.test.ts"

    This commit reverts 4037696
    iammola committed Jun 30, 2022
    Copy the full SHA
    3def8c3 View commit details
    Browse the repository at this point in the history
  4. 🚨lint: fix warnings

    iammola committed Jun 30, 2022
    Copy the full SHA
    27614de View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    1abdb34 View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    1c82c05 View commit details
    Browse the repository at this point in the history
  7. Copy the full SHA
    c64f97b View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2022

  1. Copy the full SHA
    814a0db View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    dc5e52a View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    8aa7f53 View commit details
    Browse the repository at this point in the history
  4. 🚨 lint: fix errors

    iammola committed Jul 1, 2022
    Copy the full SHA
    ca6f97b View commit details
    Browse the repository at this point in the history