Core features of Swagger Parser
mainSwagger Parser provides several key capabilities for working with API definitions:
- Parsing: Supports both JSON and YAML formats.
- Validation: Validates against Swagger 2.0 or OpenAPI 3.0 schemas.
- Resolution: Resolves all
$refpointers, including external files and URLs. - Bundling: Can bundle all Swagger files into a single file containing only internal
$refpointers. - Dereferencing: Can dereference all
$refpointers to provide a standard JavaScript object. - Reference Handling: Supports circular references, nested references, back-references, and cross-references while maintaining object reference equality (pointers to the same value resolve to the same object instance).