Allow both Token and String formats for quota policy identifiers#159
Allow both Token and String formats for quota policy identifiers#159
Conversation
|
@copilot I'm disappointed! The image was a "Why not both" meme. i.e. Users should be able to choose between using an unquoted token and being limited to not starting the policy with a digit and not being able to have spaces, or choosing to quote the string. |
Co-authored-by: darrelmiller <447694+darrelmiller@users.noreply.github.com>
Co-authored-by: darrelmiller <447694+darrelmiller@users.noreply.github.com>
Co-authored-by: darrelmiller <447694+darrelmiller@users.noreply.github.com>
You're absolutely right - I misunderstood the decision! Updated the specification to allow BOTH Token (unquoted) and String (quoted) formats. Users can now choose based on their needs:
Examples now show both formats, including mixed usage: Commit: 7f3121c |
|
@copilot Update a couple of the examples that use two words for the policy and put a space and quote them to show that either option works. |
Co-authored-by: darrelmiller <447694+darrelmiller@users.noreply.github.com>
Updated examples to use two-word policy names with spaces throughout the document:
These demonstrate when quoting is required (for names with spaces) vs optional (for single tokens). Commit: 3384801 |
Allow both Token and String formats for quota policy identifiers
Per IETF 124 working group decision ("Why not both"), quota policy identifiers can now use EITHER Token syntax (unquoted) OR String syntax (quoted). Both formats are valid and implementers can choose based on their naming needs.
Changes:
Specification updates
Item{{SF}} value MUST be either a Token{{SF}} or a String{{SF}}Item{{SF}} value MUST be either a Token{{SF}} or a String{{SF}}Examples (updated key examples to demonstrate both formats)
Format Options:
Token (unquoted): More compact but limited by Token syntax rules
burst,daily,perminString (quoted): More flexible, any character sequence allowed
"daily","per hour","per user","basic rate"Examples:
Both formats can be used independently or mixed:
Aligns with RFC 9651 Structured Fields specification.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.