File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
3
+ from typing import Optional
3
4
from typing_extensions import Literal
4
5
5
6
from ..._models import BaseModel
@@ -21,8 +22,8 @@ class Constraint(BaseModel):
21
22
22
23
23
24
class Target (BaseModel ):
24
- constraint : Constraint
25
+ constraint : Optional [ Constraint ] = None
25
26
"""String constraint."""
26
27
27
- target : Literal ["url" ]
28
+ target : Optional [ Literal ["url" ]] = None
28
29
"""A target based on the URL of the request."""
Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ class Constraint(TypedDict, total=False):
21
21
22
22
23
23
class TargetParam (TypedDict , total = False ):
24
- constraint : Required [ Constraint ]
24
+ constraint : Constraint
25
25
"""String constraint."""
26
26
27
- target : Required [ Literal ["url" ] ]
27
+ target : Literal ["url" ]
28
28
"""A target based on the URL of the request."""
You can’t perform that action at this time.
0 commit comments