atul-astronomer opened a new issue, #55571:
URL: https://github.com/apache/airflow/issues/55571

   ### Apache Airflow version
   
   main (development)
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   ```javascript
   
pt/airflow/airflow-core/src/airflow/api_fastapi/core_api/routes/public/plugins.py",
 line 47, in get_plugins
       return PluginCollectionResponse(
     File "/usr/python/lib/python3.10/site-packages/pydantic/main.py", line 
253, in __init__
       validated_self = self.__pydantic_validator__.validate_python(data, 
self_instance=self)
   pydantic_core._pydantic_core.ValidationError: 1 validation error for 
PluginCollectionResponse
   plugins.16.external_views.0.destination
     Input should be 'nav', 'dag', 'dag_run', 'task' or 'task_instance' 
[type=literal_error, input_value='Assets', input_type=str]
       For further information visit 
https://errors.pydantic.dev/2.11/v/literal_e
   ``` 
   
   <img width="906" height="567" alt="Image" 
src="https://github.com/user-attachments/assets/ef910c74-77f2-4cb0-a097-c0333bacdf0d";
 />
   
   ### What you think should happen instead?
   
   The error makes sense that its user mistake but other plugins should still 
work.
   
   ### How to reproduce
   
   Try to register below plugin:
   
   ```python
   from airflow.plugins_manager import AirflowPlugin
   
   external_view1 = {
           "name": "Airflow Croma",
           "href": "http://localhost:28080/dags/access_control";,
           "destination": "Assets",
           "icon": "book",
           "url_route": "my_external_view",
           # "category": "browse"
       }
   
   # Defining the plugin class
   class AirflowTestPlugin2(AirflowPlugin):
       name = "test_plugin2"
       external_views = [external_view1]
   
   ``` 
   
   ### Operating System
   
   Linux
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Other
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to