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] - Add async serdes.deserialize support & req/res as context #749

Open
wants to merge 25 commits into
base: master
Choose a base branch
from

Commits on Jul 17, 2022

  1. [feat] - Async deserialization and req/res as

    - Leverage ajv /asyc in serdes deserialization.
    - Leverage passContext for format.validate, deserialize, serialize
    - Add tests for async and context
    - Allow HttpErrors thrown from deserialize to influence errors thrown to express error handling pipeline.
    - Modify schema pre-processor to not share memory between ajv instance and apiDoc.
    - Modify schema pre-processor to not share memory between request and response apiDoc.
    macyabbey-okta committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    2954777 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    669f03b View commit details
    Browse the repository at this point in the history
  3. Self code review. Cleaning up comments. Single module async-utils. Mo…

    …re test coverage for async-utils.
    macyabbey-okta committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    dcf40fb View commit details
    Browse the repository at this point in the history
  4. Impl and test coverage for what is expected when async deserialize th…

    …rows HttpErrors. Deviates when deserialization is occuring in query/body/params. Functionality is a no-op if package consumers throw an Ajv.ValidationError from their deserialize function instead of an HttpError.
    macyabbey-okta committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    273069d View commit details
    Browse the repository at this point in the history
  5. Fix mermaid

    macyabbey-okta committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    f6ba222 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e50c9d6 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d5a1bc2 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2022

  1. Configuration menu
    Copy the full SHA
    c84bbc7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    50fea82 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2022

  1. Configuration menu
    Copy the full SHA
    da67f24 View commit details
    Browse the repository at this point in the history
  2. Fixing bug with async and context support when XOF has an async sub-s…

    …chema. Make sure the schema passsed to compile has if it needs it. Additionally add test coverage, and make sure the ajv instance used for preprocessing respects passContext config for validateRequests.
    macyabbey-okta committed Jul 19, 2022
    Configuration menu
    Copy the full SHA
    9e9b302 View commit details
    Browse the repository at this point in the history
  3. Fix bug where instancePath of schemas in a request body where top lev…

    …el schema has a dscriminator would lose the /body prefix of the instancePath, making error messages inconsistent. Additionally, respect the actual class type of an HttpError thrown from a deserialize/validate function.
    macyabbey-okta committed Jul 19, 2022
    Configuration menu
    Copy the full SHA
    c609e86 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e5980a9 View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2022

  1. Configuration menu
    Copy the full SHA
    445f165 View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2022

  1. Squash validation messages from oneOf sub-schemas that do not match t…

    …he provided discriminator property value.
    macyabbey-okta committed Jul 28, 2022
    Configuration menu
    Copy the full SHA
    6be17fa View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2022

  1. Configuration menu
    Copy the full SHA
    94bde72 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b5058be View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5e1c573 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3d25af8 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2022

  1. Configuration menu
    Copy the full SHA
    8125da9 View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2022

  1. If schema has discriminator and a default, apply default values to th…

    …e request if those properties are not set in data.
    macyabbey-okta committed Aug 12, 2022
    Configuration menu
    Copy the full SHA
    d99cd04 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9bc3885 View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2022

  1. Let HttpErrors thrown from serdes surface with error name as keyword …

    …so it shows up in errorCode.
    macyabbey-okta committed Aug 18, 2022
    Configuration menu
    Copy the full SHA
    d03c2a6 View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2022

  1. Configuration menu
    Copy the full SHA
    fb72ff1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    349a0b9 View commit details
    Browse the repository at this point in the history