Skip to content

Commit 504c1df

Browse files
Mark the name field of configurable props as required (#54)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: Jay Vercellone <jay@pipedream.com>
1 parent 1e4556c commit 504c1df

12 files changed

+13
-13
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "pipedream"
33

44
[tool.poetry]
55
name = "pipedream"
6-
version = "1.0.3"
6+
version = "1.0.4"
77
description = ""
88
readme = "README.md"
99
authors = []

src/pipedream/core/client_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ def __init__(
2727

2828
def get_headers(self) -> typing.Dict[str, str]:
2929
headers: typing.Dict[str, str] = {
30-
"User-Agent": "pipedream/1.0.3",
30+
"User-Agent": "pipedream/1.0.4",
3131
"X-Fern-Language": "Python",
3232
"X-Fern-SDK-Name": "pipedream",
33-
"X-Fern-SDK-Version": "1.0.3",
33+
"X-Fern-SDK-Version": "1.0.4",
3434
**(self.get_custom_headers() or {}),
3535
}
3636
if self._project_environment is not None:

src/pipedream/types/configurable_prop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class ConfigurableProp(UniversalBaseModel):
1313
A configuration or input field for a component.
1414
"""
1515

16-
name: typing.Optional[str] = pydantic.Field(default=None)
16+
name: str = pydantic.Field()
1717
"""
1818
When building `configuredProps`, make sure to use this field as the key when setting the prop value
1919
"""

src/pipedream/types/configurable_prop_alert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class ConfigurablePropAlert(UniversalBaseModel):
2323
The content of the alert, which can include HTML or plain text.
2424
"""
2525

26-
name: typing.Optional[str] = pydantic.Field(default=None)
26+
name: str = pydantic.Field()
2727
"""
2828
When building `configuredProps`, make sure to use this field as the key when setting the prop value
2929
"""

src/pipedream/types/configurable_prop_any.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
class ConfigurablePropAny(UniversalBaseModel):
1212
type: typing.Optional[typing.Literal["any"]] = None
13-
name: typing.Optional[str] = pydantic.Field(default=None)
13+
name: str = pydantic.Field()
1414
"""
1515
When building `configuredProps`, make sure to use this field as the key when setting the prop value
1616
"""

src/pipedream/types/configurable_prop_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class ConfigurablePropApp(UniversalBaseModel):
1515
The name slug of the app, e.g. 'github', 'slack', etc. This is used to identify the app for which the account is being configured.
1616
"""
1717

18-
name: typing.Optional[str] = pydantic.Field(default=None)
18+
name: str = pydantic.Field()
1919
"""
2020
When building `configuredProps`, make sure to use this field as the key when setting the prop value
2121
"""

src/pipedream/types/configurable_prop_boolean.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
class ConfigurablePropBoolean(UniversalBaseModel):
1212
type: typing.Optional[typing.Literal["boolean"]] = None
13-
name: typing.Optional[str] = pydantic.Field(default=None)
13+
name: str = pydantic.Field()
1414
"""
1515
When building `configuredProps`, make sure to use this field as the key when setting the prop value
1616
"""

src/pipedream/types/configurable_prop_discord.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
class ConfigurablePropDiscord(UniversalBaseModel):
1212
type: typing.Optional[typing.Literal["$.discord.channel"]] = None
13-
name: typing.Optional[str] = pydantic.Field(default=None)
13+
name: str = pydantic.Field()
1414
"""
1515
When building `configuredProps`, make sure to use this field as the key when setting the prop value
1616
"""

src/pipedream/types/configurable_prop_integer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class ConfigurablePropInteger(UniversalBaseModel):
2020
The maximum value for this integer prop.
2121
"""
2222

23-
name: typing.Optional[str] = pydantic.Field(default=None)
23+
name: str = pydantic.Field()
2424
"""
2525
When building `configuredProps`, make sure to use this field as the key when setting the prop value
2626
"""

src/pipedream/types/configurable_prop_object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
class ConfigurablePropObject(UniversalBaseModel):
1212
type: typing.Optional[typing.Literal["object"]] = None
13-
name: typing.Optional[str] = pydantic.Field(default=None)
13+
name: str = pydantic.Field()
1414
"""
1515
When building `configuredProps`, make sure to use this field as the key when setting the prop value
1616
"""

0 commit comments

Comments
 (0)