feat: Add Spectral rules and tests for JSON:API error objects
This introduces a new set of Spectral rules specifically tailored for validating JSON:API error object structures within OpenAPI documents. Key highlights include:
Creation of Spectral rules to ensure compliance with JSON:API standards, focusing on error object structures such as array structure, object properties, links, source, and meta-information.
Development of a comprehensive OpenAPI test document that adheres to JSON:API specifications, particularly in defining error responses.
Implementation of various utility functions to enhance the testing framework, including functions functions for setting up spectral, processing test rules, and dynamically managing rule sets based on test requirements.
Debugging and refinement of rules and test document structure to align with JSONPath expressions and Spectral's schema validation requirements.
These additions significantly improve our capability to automatically validate and ensure the consistency of API responses with the JSON:API standard.
feat: Add Spectral rules and tests for JSON:API error objects
This introduces a new set of Spectral rules specifically tailored for validating JSON:API error object structures within OpenAPI documents. Key highlights include:
These additions significantly improve our capability to automatically validate and ensure the consistency of API responses with the JSON:API standard.