![]() Simply drag and drop your OpenAPI JSON or YAML document into the Swagger Editor browser window. ![]() Trying to break specification in to multiple files. Swagger Editor can import your OpenAPI document, which can be formatted as JSON or YAML. The files are served from Tomcat 7 and CORS filter enabled at the server level in /conf/web.xml file Possible Solution Replaced them with http url's but still the same network error as file uri. The second one with file:/// prefix results in the error: Could not resolve reference because of: NetworkError when attempting to fetch resource. Current BehaviorĮRROR: Could not resolve reference because of: Tried to resolve a relative URL. ![]() If the spec is broken in to multiple files, there should be a way to resolve the files with relative path. No special configuration Expected Behavior Currently there is no way to jump between files or create a new one. ![]() $ref: >- file:///C:/OpenAPI/header_parameters.yaml#/xcsimessageid - $ref: >- file:///C:/OpenAPI/header_parameters.yaml#/xcsitimetolive - $ref: 'file:///C:/OpenAPI/header_parameters.yaml#/ctnid ' Configuration (browser query string, constructor, config.yaml) This works fine in current editor if you host the editor yourself so parameterscommon.yaml path can get resolved as an HTTP path.
0 Comments
Leave a Reply. |