Skip to content

Commit ef6689c

Browse files
幾田純平claude
authored andcommitted
fix: add price_id validation to reject non-ASCII characters (Closes #4)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a61a3a4 commit ef6689c

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

openapi.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7320,6 +7320,7 @@
73207320
"price_id": {
73217321
"type": "string",
73227322
"nullable": true,
7323+
"pattern": "^[a-zA-Z0-9_-]+$",
73237324
"description": "Stripe price ID for billing purposes."
73247325
},
73257326
"status": {
@@ -7479,7 +7480,8 @@
74797480
},
74807481
"price_id": {
74817482
"type": "string",
7482-
"nullable": true
7483+
"nullable": true,
7484+
"pattern": "^[a-zA-Z0-9_-]+$"
74837485
},
74847486
"status": {
74857487
"$ref": "#/components/schemas/DeviceStatus"

openapi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5786,6 +5786,7 @@ components:
57865786
price_id:
57875787
type: string
57885788
nullable: true
5789+
pattern: ^[a-zA-Z0-9_-]+$
57895790
description: Stripe price ID for billing purposes.
57905791
status:
57915792
$ref: '#/components/schemas/DeviceStatus'
@@ -5970,6 +5971,7 @@ components:
59705971
price_id:
59715972
type: string
59725973
nullable: true
5974+
pattern: ^[a-zA-Z0-9_-]+$
59735975
status:
59745976
$ref: '#/components/schemas/DeviceStatus'
59755977
metadata:

0 commit comments

Comments
 (0)