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

Additional Glacier Required Fields #624

Merged
merged 2 commits into from
May 1, 2021

Conversation

brendanhay
Copy link
Owner

Closes #469

LeifW and others added 2 commits May 1, 2021 16:13
These are apparently not marked as required in the service file, but
they are marked as required in the docs for these things, e.g.
https://docs.aws.amazon.com/amazonglacier/latest/dev/api-multipart-initiate-upload.html

I don't know the difference between marking a field as required in the
shapes of gen/annex/foo.json, vs marking it as required in the
typeOverrides of gen/config/foo.json. This current approach seems to
give the desired effect, though.

There's likely plenty of other request types where the service files are
not entirely accurate, but I just did this for the types I'm currently
working with (the ones necessary to do multipart uploads).
typeOverrides are more robust in the presence of service description
updates, ie. new fields being added which would simultaenously require
the annex to be updated in step.

They unfortunately affect the field/parameter ordering of the generated
types and constructors, do to being appended to the set of inputs.

Closes #469
@brendanhay brendanhay changed the title Glacier required fields multipart uploads Additional Glacier Required Fields May 1, 2021
@brendanhay brendanhay merged commit 35382ac into develop May 1, 2021
@brendanhay brendanhay deleted the glacier_required_fields_multipart_uploads branch May 1, 2021 14:26
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.

2 participants