Skip to content

$ref to another json schema not resolved #336

@abhijith-prabhakar

Description

@abhijith-prabhakar

Hi,

I have a $ref on a json file which references a json file in another directory.

title.json

 "currency" : {
    "$ref": "./common/currency_code.json"
 }

Swagger Codegen/parser fails to resolve this reference. Have created a sample application to demo the same. Tried with v2.2.1 and v2.2.2-SNAPSHOT version of the codegen.

https://github.com/abhijith-prabhakar/swagger-ref-error-demo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions