Skip to content

Commit d5384a7

Browse files
committed
update v2 spec + python lint
1 parent f5865c6 commit d5384a7

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

specs/x402-specification-v2.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ When a resource server requires payment, it responds with a payment required sig
7878
"resource": {
7979
"url": "https://api.example.com/premium-data",
8080
"description": "Access to premium market data",
81-
"mimeType": "application/json"
81+
"mimeType": "application/json",
82+
"serviceName": "Example Market Data",
83+
"tags": ["market-data", "finance"],
84+
"iconUrl": "https://api.example.com/icon.png"
8285
},
8386
"accepts": [
8487
{
@@ -124,11 +127,14 @@ Each `PaymentRequirements` object in the `accepts` array contains:
124127

125128
The `ResourceInfo` object contains:
126129

127-
| Field Name | Type | Required | Description |
128-
| ------------- | -------- | -------- | ------------------------------------------ |
129-
| `url` | `string` | Required | URL of the protected resource |
130-
| `description` | `string` | Optional | Human-readable description of the resource |
131-
| `mimeType` | `string` | Optional | MIME type of the expected response |
130+
| Field Name | Type | Required | Description |
131+
| --------------- | --------------- | -------- | -------------------------------------------------------------------------------------------------------------------- |
132+
| `url` | `string` | Required | URL of the protected resource |
133+
| `description` | `string` | Optional | Human-readable description of the resource |
134+
| `mimeType` | `string` | Optional | MIME type of the expected response |
135+
| `serviceName` | `string` | Optional | Human-readable name of the service hosting the resource. Printable ASCII, max 32 characters. |
136+
| `tags` | `array[string]` | Optional | Topical tags for the service, used for discovery filtering. Max 5 entries; each printable ASCII, max 32 characters. |
137+
| `iconUrl` | `string` | Optional | Absolute `https`/`http` URL to an icon representing the service. Max 2048 characters. |
132138

133139
The `Extensions` object is a key-value map where each key is an extension identifier and each value follows a standardized structure:
134140

0 commit comments

Comments
 (0)