Skip to content

Commit ef61027

Browse files
OpenAPI Update (#764)
Update OpenAPI for 35a32d43e4706e46261f4c5c6aaa95a075d96928 Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
1 parent e3985ab commit ef61027

File tree

2 files changed

+40
-8
lines changed

2 files changed

+40
-8
lines changed

embedded/openapi/spec3.beta.sdk.json

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15577,9 +15577,23 @@
1557715577
"description": "An active entitlement describes access to a feature for a customer.",
1557815578
"properties": {
1557915579
"feature": {
15580-
"description": "The feature that the customer is entitled to.",
15581-
"maxLength": 5000,
15582-
"type": "string"
15580+
"anyOf": [
15581+
{
15582+
"maxLength": 5000,
15583+
"type": "string"
15584+
},
15585+
{
15586+
"$ref": "#/components/schemas/entitlements.feature"
15587+
}
15588+
],
15589+
"description": "The [Feature](https://stripe.com/docs/api/entitlements/feature) that the customer is entitled to.",
15590+
"x-expansionResources": {
15591+
"oneOf": [
15592+
{
15593+
"$ref": "#/components/schemas/entitlements.feature"
15594+
}
15595+
]
15596+
}
1558315597
},
1558415598
"id": {
1558515599
"description": "Unique identifier for the object.",
@@ -15612,7 +15626,9 @@
1561215626
],
1561315627
"title": "ActiveEntitlement",
1561415628
"type": "object",
15615-
"x-expandableFields": [],
15629+
"x-expandableFields": [
15630+
"feature"
15631+
],
1561615632
"x-resourceId": "entitlements.active_entitlement",
1561715633
"x-stripeOperations": [
1561815634
{

embedded/openapi/spec3.json

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11127,9 +11127,23 @@
1112711127
"description": "An active entitlement describes access to a feature for a customer.",
1112811128
"properties": {
1112911129
"feature": {
11130-
"description": "The feature that the customer is entitled to.",
11131-
"maxLength": 5000,
11132-
"type": "string"
11130+
"anyOf": [
11131+
{
11132+
"maxLength": 5000,
11133+
"type": "string"
11134+
},
11135+
{
11136+
"$ref": "#/components/schemas/entitlements.feature"
11137+
}
11138+
],
11139+
"description": "The [Feature](https://stripe.com/docs/api/entitlements/feature) that the customer is entitled to.",
11140+
"x-expansionResources": {
11141+
"oneOf": [
11142+
{
11143+
"$ref": "#/components/schemas/entitlements.feature"
11144+
}
11145+
]
11146+
}
1113311147
},
1113411148
"id": {
1113511149
"description": "Unique identifier for the object.",
@@ -11162,7 +11176,9 @@
1116211176
],
1116311177
"title": "ActiveEntitlement",
1116411178
"type": "object",
11165-
"x-expandableFields": [],
11179+
"x-expandableFields": [
11180+
"feature"
11181+
],
1116611182
"x-resourceId": "entitlements.active_entitlement"
1116711183
},
1116811184
"entitlements.feature": {

0 commit comments

Comments
 (0)