mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 15:49:33 -05:00
The values a statement's resource elements name were gathered from the entries that were already text, so "Resource": 123 and "Resource": [123] were stored while "Resource": "123" was refused with Resource 123 must be in ARN format or "*". One text, two answers, depending on whether it was written in quotes. A value that is no string names the text of that value now, which is how the Version and the Effect are already read, so both spellings of the same text are refused alike. An element carrying null still names nothing, which is the element's own sentence rather than a value to check. The policy grammar writes a resource as a <resource_string>, and AWS reports a value whose JSON type is not the expected one as an error of its own, DATA_TYPE_MISMATCH, "The text does not match the expected JSON data type". The two other clauses that can carry a non-string are recorded: a Version of 20121017 and an Effect of true are each refused with that clause's own sentence rather than read past. The second half is which sentence that effect clause gets. A statement declaring an effect the language does not define was answered The policy failed legacy parsing whichever write was handed the document, where the inline validator words it that way and the managed one Syntax errors in policy, both recorded. The sentence follows the validator that read it now, so CreatePolicy and CreatePolicyVersion answer the managed wording while PutUserPolicy, PutGroupPolicy and PutRolePolicy keep theirs. No code and no status moves: every refusal here is MalformedPolicyDocument at 400, as it was. The version and resource sentences are worded alike by both validators and stay that way, and condition values are not read by either.