Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Sep 6, 2023

Generated OpenAPI Suggestions by Speakeasy CLI.
Outputs changes to ./openapi.yaml.

"requestBodies": {},
"responses": {},
"schemas": {
"Destination": {
Copy link
Contributor Author

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",
Copy link
Contributor Author

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",
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants