Description:
The current swagger-parser (version 2.1.21) fails to parse the referenced ArraySchema in the provided Swagger YAML file. When attempting to resolve the schema, the parser returns a null value for $ref and ignores the object properties defined within the array schema, which leads to incomplete parsing. It captures addresses field as ArraySchema but failed to capture it's properties.
Steps to Reproduce:
Use the provided Swagger YAML file containing a referenced ArraySchema.
Run the Swagger parser with the specified configurations and dependencies.
Inspect the parsed output and notice the null values for properties within the ArraySchema.
Expected Behavior:
The Swagger parser should successfully parse and resolve all referenced schemas, including ArraySchema, providing complete and accurate schema definitions.
Same problem here. It may be fine, that $ref is null inside ArraySchema, because the $ref belongs to the items, but the items inside won’t get parsed and are missing in the output.
Description: The current swagger-parser (version 2.1.21) fails to parse the referenced ArraySchema in the provided Swagger YAML file. When attempting to resolve the schema, the parser returns a null value for
$ref
and ignores the object properties defined within the array schema, which leads to incomplete parsing. It capturesaddresses
field as ArraySchema but failed to capture it's properties.Steps to Reproduce:
Expected Behavior: The Swagger parser should successfully parse and resolve all referenced schemas, including ArraySchema, providing complete and accurate schema definitions.
YAML File:
Dependency used:
Swagger parser configurations:
Output (with unresolved ArraySchema):