Hello, I've got a quick question about `Configura...
# ask-community
a
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