Parameters
Parameters are the inputs required and accepted by an AXAG-annotated operation.
Declaration Methods
On the action element:
<button
axag-intent="product.search"
axag-required-parameters='["query"]'
axag-optional-parameters='["category","price_min","price_max"]'
>Search</button>
On individual input elements:
<input
axag-parameter="query"
axag-parameter-type="string"
axag-parameter-required="true"
axag-parameter-description="Search query text"
axag-parameter-min-length="1"
axag-parameter-max-length="200"
/>
Parameter Types
string, number, boolean, date, datetime, enum, array, object
Parameter Constraints
axag-parameter-min/axag-parameter-max— Numeric rangeaxag-parameter-min-length/axag-parameter-max-length— String lengthaxag-parameter-pattern— Regex validationaxag-parameter-enum— Allowed valuesaxag-parameter-format— Format hint (email, url, phone, date, etc.)