Skip to content
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

API-54 Errors.Processing #61

Merged

Conversation

ezenity
Copy link
Contributor

@ezenity ezenity commented Dec 26, 2023

Added New Spectral Rules for JSON:API v1.0 Errors.ProcessingErrors

This introduces a new set of Spectral rules specifically tailored for validation JSON:API v1.0 Errors - Processing Errors within an OpenAPI Document. Key Highlights Include:

  • Creation of Spectral rules to ensure compliance with JSON:API v1.0 standards, focusing on Processing Errors specifications.
  • Ensuring when multiple problems occurs for a single request one HTTP error code is used.

These additions significantly improve our capability to automatically validate and ensure the consistency of API responses with the JSON:API v1.0 standard.

This commit introduces a new set of Spectral rules specifically tailored for validating JSON:API v1.0 Errors - Processing Errors within an OpenAPI Document. Key highlights include:

- Creation of Spectral rules to ensure compliance with JSON:API v1.0 standards, focusing on Processing Errors specifications.
- Validating that the errors array is following the standard from JSON:API v1.0

These additions significantly improve our capability to automatically validate and ensure the consistency of API responses with the JSON:API v1.0 standard.
This commit marks the completion of detailed test cases for all of the JSON:API v1.0 Errors - Processing Errors ruleset.

These updates significantly improve the robustness and relaibility of the JSON:API v1.0 specifications for Processing Errors validation process.
- These two files provides a way to test all the created rules for both positive and negative scenarios.
- Created a failing-rules.yaml which generates a way to trigger all the rules to display the error message
- Refactored 'Errors' location to adhere to correct strucutre for both Errors sections
- Updated the passing-rules.yaml to adhere to the specifications of JSON:API v1.0 for Processing Errors.
@ezenity ezenity marked this pull request as ready for review December 26, 2023 21:04
@AkshayPathakMLF AkshayPathakMLF merged commit 33c432d into jmlue42:main Dec 29, 2023
4 checks passed
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