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

Revise default value design doc to match recent updates #1412

Merged
merged 1 commit into from
Sep 19, 2022

Conversation

mtdowling
Copy link
Member

Issue #, if available:

Description of changes:

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

@mtdowling mtdowling requested a review from a team as a code owner September 17, 2022 00:08
@mtdowling mtdowling merged commit 4504cd0 into main Sep 19, 2022
@@ -277,6 +320,11 @@ The following shapes have restrictions on their default values:

### Updating default values

The default value of a member MAY be changed. The default value of a root-level
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a SHOULD NOT below. The MAY sentence can be removed here.

shape MUST NOT be changed since that would break any shape that refers to
the shape, and could break other models that refer to a shape defined in a
shared model.

The default value of a member SHOULD NOT be changed. However, it MAY be
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is implied that this applies only when the member has a default without the target root level shape having a default, but maybe worth calling it out.
The default value of a member (that targets a shape without a default value) SHOULD NOT be changed.

@mtdowling mtdowling deleted the revise-default-value-design-doc branch October 24, 2022 16: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.

3 participants