-
Notifications
You must be signed in to change notification settings - Fork 0
Speakeasy OpenAPI Suggestions -Suggest Hightouch Spec #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: test-suggestion
Are you sure you want to change the base?
Speakeasy OpenAPI Suggestions -Suggest Hightouch Spec #15
Conversation
| "requestBodies": {}, | ||
| "responses": {}, | ||
| "schemas": { | ||
| "Destination": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error 1: missing-examples - Missing example for component. Consider adding an example
Suggestion 1: Add an example to the Destination component under the schemas. The example includes properties id, name, slug, and workspaceId.
Explanation 1: The error message indicated that there was a missing example for a component. The component 'Destination' was identified as missing an example. An example was created using the properties of the 'Destination' component and added to the schema using a JSON patch.
| "type": "object", | ||
| "additionalProperties": false, | ||
| "example": { | ||
| "id": "123", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error 2: missing-examples - Missing example for component. Consider adding an example
Suggestion 2: Add an example to the ValidateErrorJSON component. The example should be an object with a message property set to Validation failed and a details property set to an empty object.
Explanation 2: The ValidateErrorJSON component is missing an example. By adding an example that is a valid instance of the ValidateErrorJSON schema, the validation error should be resolved.
| } | ||
| }, | ||
| "required": [ | ||
| "message", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error 3: missing-examples - Missing example for component. Consider adding an example
Suggestion 3: Add an example to the InternalServerError component. The example should be 'Internal Server Error', which is a valid value for this component.
Explanation 3: The validation error indicated that the InternalServerError component was missing an example. Adding an example that is a valid value for this component resolves the error.
Generated OpenAPI Suggestions by Speakeasy CLI.
Outputs changes to ./openapi.yaml.