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
# changes.append(('breaking', f"Added required parameter '{param_name}' to {new_endpoint.path_pattern}"))
74
+
# else:
75
+
# changes.append(('non-breaking', f"Added optional parameter '{param_name}' to {new_endpoint.path_pattern}"))
76
+
# # Check if response schema changed (potentially breaking)
77
+
# if old_endpoint.response_schema != new_endpoint.response_schema:
78
+
# changes.append(('breaking', f"Response schema changed from '{old_endpoint.response_schema}' to '{new_endpoint.response_schema}' for {old_endpoint.path_pattern}"))
79
+
# # Check if request schema changed (breaking)
80
+
# if old_endpoint.request_schema != new_endpoint.request_schema:
81
+
# changes.append(('breaking', f"Request schema changed from '{old_endpoint.request_schema}' to '{new_endpoint.request_schema}' for {old_endpoint.path_pattern}"))
82
+
# # Check if error codes changed (informational)
83
+
# old_errors = set(old_endpoint.error_codes)
84
+
# new_errors = set(new_endpoint.error_codes)
85
+
#
86
+
# if old_errors != new_errors:
87
+
# added_errors = new_errors - old_errors
88
+
# removed_errors = old_errors - new_errors
89
+
#
90
+
# if added_errors:
91
+
# changes.append(('non-breaking', f"Added error codes {added_errors} to {old_endpoint.path_pattern}"))
92
+
# if removed_errors:
93
+
# changes.append(('non-breaking', f"Removed error codes {removed_errors} from {old_endpoint.path_pattern}"))
94
+
#
95
+
# return changes
96
+
#
97
+
# def _get_required_params(self, endpoint: Schema__Endpoint__Contract # Endpoint to extract params from
98
+
# ) -> set: # Get set of required parameter names from endpoint
99
+
#
100
+
# required = set()
101
+
# # Path parameters are always required
102
+
# for param in endpoint.path_params:
103
+
# required.add(param.name)
104
+
# # Add required query parameters
105
+
# for param in endpoint.query_params:
106
+
# if param.required:
107
+
# required.add(param.name)
108
+
# # Add required header parameters
109
+
# for param in endpoint.header_params:
110
+
# if param.required:
111
+
# required.add(param.name)
112
+
#
113
+
# return required
114
+
#
115
+
# def _find_param(self, endpoint : Schema__Endpoint__Contract , # Endpoint to search in
116
+
# param_name : str # Parameter name to find
117
+
# ): # Find a parameter by name in endpoint
118
+
# # Check all parameter lists
119
+
# for param in endpoint.path_params + endpoint.query_params + endpoint.header_params:
120
+
# if param.name == param_name:
121
+
# return param
122
+
#
123
+
# return None
124
+
#
125
+
# def generate_change_summary(self, diff: Schema__Contract__Diff # Diff to summarize
126
+
# ) -> str: # Generate human-readable summary of changes
0 commit comments