From 0e9f3402f24639c9785b31fcdbcf8d298a1fb096 Mon Sep 17 00:00:00 2001 From: Priamo Germosen <6233424+pgermosen@users.noreply.github.com> Date: Mon, 2 Nov 2026 19:31:36 -0400 Subject: [PATCH] docs(iam): name the one omitted member the capture covers (#7331) docs/services/iam.md and IamValidationErrors read as if the capture that moved IAM's required-member message settled it for every member. It settled one: an omitted Status, answered from a real account on 2026-10-31 as "Value at 'status' failed to satisfy constraint: Member must not be null" against the shape the four credential operations share. Every other omitted member this service answers, the sites checked by hand and each required member the model walk reads, carries that form on this service's reading rather than on a recording: the word null was never a value AWS sent, an absent member having none to carry. The doc separates the two and keeps that reasoning, IamValidationErrors says the capture covers Status alone where the form is decided, and the account-properties test, which quoted the Status capture beside an assertion on an omitted properties map, says the reading is what carries over there. Prose and comments only, no behavior change. Follow-up to #7265. --- docs/services/iam.md | 15 +++++++++++---- .../floci/services/iam/IamValidationErrors.java | 9 ++++++--- .../iam/AccountPropertiesIntegrationTest.java | 5 +++-- 3 files changed, 20 insertions(+), 9 deletions(-) diff --git a/docs/services/iam.md b/docs/services/iam.md index ffcc546601..5f5c0bf64f 100644 --- a/docs/services/iam.md +++ b/docs/services/iam.md @@ -325,10 +325,17 @@ whatever it breaks. Other services do quote a list, Lambda's `Value '[x86_64, ar A required member the request leaves out reads the same way, `Value at 'status' failed to satisfy constraint: Member must not be null`, with no `null` standing where the value would. That was the one message carrying a word in the value's place until 2026-10-31, when a capture from a real -account answered an omitted `Status` and showed the word gone with every other value this service -leaves out. The form is chosen in one place, so the capture moved it in one edit rather than across -the service, and the services that do quote their values, STS among them, still write `Value null at -''`. +account answered an omitted `Status` without it. + +What that capture settles is one member. `Status`, on the four credential operations that share it, +is the only omitted member any recording covers. Every other one this service answers, the members +checked by hand and each required member the model walk reads, carries that form on Floci's reading +rather than on a capture: the word `null` was never a value AWS sent, an absent member having none +to carry, so one rendering for the whole service is the likelier reading of a message that names the +member and nothing else. The form is chosen in one place, which is what let the capture move it in +one edit rather than across the service, and a capture of some other omitted member would confirm it +or split `Status` from the rest in one edit too. The services that do quote their values, STS among +them, still write `Value null at ''`. ### Two answers the model carries since a capture settled them diff --git a/src/main/java/io/github/hectorvent/floci/services/iam/IamValidationErrors.java b/src/main/java/io/github/hectorvent/floci/services/iam/IamValidationErrors.java index a52f3efa48..0a6f0a1123 100644 --- a/src/main/java/io/github/hectorvent/floci/services/iam/IamValidationErrors.java +++ b/src/main/java/io/github/hectorvent/floci/services/iam/IamValidationErrors.java @@ -14,8 +14,10 @@ import io.github.hectorvent.floci.core.common.SmithyValidationErrors; * whole carries the list. A required member the request leaves out used to read * {@code Value null at ''} for want of a capture either way; one arrived on 2026-10-31, * answering an omitted {@code Status} as {@code Value at 'status' failed to satisfy constraint: - * Member must not be null}, so the word {@code null} comes out with every other value this service - * leaves out and {@link #notNull} is where that is decided. + * Member must not be null}. That capture covers {@code Status} alone. Dropping the word for every + * other member this service leaves out is Floci's reading of it rather than a recorded answer, on + * the grounds that an absent member has no value to carry, and {@link #notNull} is where that is + * decided, so a capture that ever splits the two moves one place. */ final class IamValidationErrors { @@ -29,7 +31,8 @@ final class IamValidationErrors { /** * The 400 {@code ValidationError} for a required member the request leaves out, named with no * value and no {@code null} beside it. Captured from a real account on 2026-10-31 against the - * {@code Status} the four credential operations share. + * {@code Status} the four credential operations share, and read here as the form every other + * omitted member takes, which nothing captured covers. */ static AwsException notNull(String path) { return SmithyValidationErrors.validationError(MESSAGES.notNull(path)); diff --git a/src/test/java/io/github/hectorvent/floci/services/iam/AccountPropertiesIntegrationTest.java b/src/test/java/io/github/hectorvent/floci/services/iam/AccountPropertiesIntegrationTest.java index 2ffa2b3ca4..76f2dd2c41 100644 --- a/src/test/java/io/github/hectorvent/floci/services/iam/AccountPropertiesIntegrationTest.java +++ b/src/test/java/io/github/hectorvent/floci/services/iam/AccountPropertiesIntegrationTest.java @@ -152,8 +152,9 @@ class AccountPropertiesIntegrationTest { .body(containsString("ValidationError")) // IAM's own form, captured from a real account on 2026-10-31 against the Status the // four credential operations share: "1 validation error detected: Value at 'status' - // failed to satisfy constraint: Member must not be null". SNS, which quotes its - // values, carries a null where the value would go; IAM leaves it out with the rest. + // failed to satisfy constraint: Member must not be null". Nothing captured covers this + // member, so leaving the word out here is that reading carried over. SNS, which quotes + // its values, carries a null where the value would go. .body(containsString("1 validation error detected")) // The apostrophes around the member name come back XML-escaped, so the assertion // stops at the parts that survive escaping.