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.

[appsync-emulator-serverless] Does not respect multiple appsSync API's in config #140

Description

@barendb

Back story, we break our yml files into multiple files

ex:

custom: 
  appSync:
    - ${file(src/api/internal-serverless.yml)}

⬆️ that's valid as per serverless-appsync-plugin documentation

However appsync-emulator-serverless assumes that the config will always look like

custom:
  appSync:
    name:  # defaults to api
    ...

Below are the two problem areas
https://github.com/ConduitVC/aws-utils/blob/01f7da7a46c75d3a131d450f0a6d2fbe2c6ade87/packages/appsync-emulator-serverless/server.js#L75

https://github.com/ConduitVC/aws-utils/blob/01f7da7a46c75d3a131d450f0a6d2fbe2c6ade87/packages/appsync-emulator-serverless/schema.js#L395

Happy to create a PR to fix this

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