Skip to content
This repository was archived by the owner on Sep 30, 2019. It is now read-only.
This repository was archived by the owner on Sep 30, 2019. It is now read-only.

Emulator does not throw error when AppSync does #153

Description

@ScottAP108

Testing locally, I added a scanIndexForward property to a mapping template for a scan operation, not realizing at the time that this property is only permitted in queries. The emulator did not throw an error for this, but once I deployed, AppSync did.

The emulator seems to simply ignore extraneous properties in mapping templates that are not necessary to construct the params for the dynamo request. If the goal is to faithfully emulate the behavior of AppSync as closely as possible, maybe it would be best to have a list of permissible properties for each operation, and throw an error when a property outside of that list is encountered.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions