amplify-category-api icon indicating copy to clipboard operation
amplify-category-api copied to clipboard

fix: added @default schema validations

Open bzsurbhi opened this issue 1 year ago • 0 comments

Description of changes

Adde schema validations for

  • @default directive

    • The @default directive may only be added to object definitions annotated with @model
    • The @default directive may only be added to scalar or enum field types
    • The @default directive only takes a value property
    • String cannot represent a non string value: the @default directive has a non String value
  • ownerField should be of type String

CDK / CloudFormation Parameters Changed

N/A

Description of how you validated changes

Checklist

  • [x] PR description included
  • [x] yarn test passes
  • [x] Tests are changed or added

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

bzsurbhi avatar May 09 '24 18:05 bzsurbhi