serverless-appsync-plugin icon indicating copy to clipboard operation
serverless-appsync-plugin copied to clipboard

fix: schema directives validation

Open danielfttorres opened this issue 1 year ago • 2 comments

As a see below, the @canonical directive can be used to annotate that a specific field are canonical and can be reused by an associated API. Screenshot 2023-11-26 at 16 37 57

But when try to use @canonical directive, according to the AppSync Merged API's spec, results on:

Invalid GraphQL schema:
     Unknown directive "@canonical".

This PR fix this by adding the support for the @canonical directive.

danielfttorres avatar Nov 26 '23 19:11 danielfttorres

Thank you @danielfttorres We should also add the other directives (@hidden, @renamed, etc).

bboure avatar Feb 11 '24 09:02 bboure

Added the @hidden and @renamed directives @bboure.

danielfttorres avatar Feb 11 '24 22:02 danielfttorres