You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When defining a schema with a node that includes auniqueness_constraints field referencing a non-existing attribute, the system throws an internal server error (500).
Ideally, the system should provide a validation error or a clear message explaining that the referenced attribute does not exist.
Expected Behavior
The system should validate the schema and return a descriptive error message
Steps to Reproduce
Using the schema below with auniqueness_constraints, referencing an attribute that does not exist in the node's attributes list.
> infrahubctl schema load test-schema.ymlHTTP communication failure: Server error '500 Internal Server Error' for url'http://localhost:8000/api/schema/load?branch=main'For more information check:https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500 on POST tohttp://localhost:8000/api/schema/load?branch=main
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Component
infrahubctl
Infrahub version
0.16.3
Current Behavior
When defining a schema with a node that includes a
uniqueness_constraints
field referencing a non-existing attribute, the system throws an internal server error (500).Ideally, the system should provide a validation error or a clear message explaining that the referenced attribute does not exist.
Expected Behavior
The system should validate the schema and return a descriptive error message
Steps to Reproduce
Using the schema below with a
uniqueness_constraints
, referencing an attribute that does not exist in the node's attributes list.Load the schema.
The server returns a 500 error.
Additional Information
No response
The text was updated successfully, but these errors were encountered: