https://dagster.io/ logo
#ask-community
Title
# ask-community
a

Alexis Manin

02/07/2024, 8:10 AM
Hello, I've got a quick question about
ConfigurableResource
description. Is there a way to display a description in UI for resource attributes/keys ? If so, what would the recommended way to do so ? Here is a simplified example of what I've tried:
Copy code
class MyResource(ConfigurableResource):
    """Configurable resource description
    
    This description appears correctly in the UI
    """

    resource_attribute: str
    """Attribute description not shown in UI.

    Is there a way to attach a description to resource attributes/keys ?
    """
Thanks,
Ok, I've found a way to do so. I just have to assign a Pydantic Field to my resource, like that:
Copy code
from Pydantic import Field

class MyResource(ConfigurableResource):
    """Configurable resource description
    
    This description appears correctly in the UI
    """

    resource_attribute: str = Field(description="Attribute description properly shown in UI")
🎉 1
3 Views