Skip to content

Error management : missing file name , when file is invalid #220

@LasneF

Description

@LasneF

doing

openapi-changes summary a.yml b.yml

can produce

2025-07-16 10:30:23 ERROR unable to locate reference anywhere in the rolodex reference: #/components/schemas/403-Forbidden
2025-07-16 10:30:23 ERROR unable to locate reference anywhere in the rolodex reference: #/components/schemas/403-Forbidden
2025-07-16 10:30:23 ERROR error building path item: schema build failed: reference '#/components/schemas/403-Forbidden' cannot be found at line 1100, col 23
2025-07-16 10:30:23 ERROR error building path item: schema build failed: reference '#/components/schemas/403-Forbidden' cannot be found at line 1132, col 23
ERROR component #/components/schemas/403-Forbidden does not exist in the specification
ERROR component #/components/schemas/404-NotFound does not exist in the specification
ERROR component #/components/schemas/500-ISE does not exist in the specification
Error: component #/components/schemas/403-Forbidden does not exist in the specification
component #/components/schemas/404-NotFound does not exist in the specification
component #/components/schemas/500-ISE does not exist in the specification

it would be nice to have the file name as part of the error details (usefull only for openapichanges as comparing 2 files)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions