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

Honour @id directive on type fields #60

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

danielfinke
Copy link
Contributor

Issue #, if available: #59

Description of changes:

When the @id directive was specified on a field, it was ignored by schemaModelValidator which added a new ID field, resulting in 2 ID fields.

Now, the directive inference checks for the existence of an ID field before adding the default one.

  • break out logic around ID/input fields into dedicated functions
  • better inlining of input fields and values

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

When the `@id` directive was specified on a field, it was ignored by
`schemaModelValidator` which added a new ID field, resulting in 2 ID
fields.

Now, the directive inference checks for the existence of an ID field
before adding the default one.

- break out logic around ID/input fields into dedicated functions
- better inlining of input fields and values

closes aws#59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant