signnow / OpenAPI-Specification

Leverage this OpenAPI specification to get a trial run of the signNow REST API - the easiest way to embed e-signature workflows and document signing into your app. To get your account, register at https://www.signnow.com/developers
MIT License
0 stars 4 forks source link

Reference to missing file #6

Open John15213 opened 3 years ago

John15213 commented 3 years ago

Several API generators fail with the relative reference to apidocs.oas2.yml in the file, below is openapitools/openapi-generator-cli's result

Exception in thread "main" org.openapitools.codegen.SpecValidationException: There were issues with the specification. The option can be disabled via validateSpec (Maven/Gradle) or --skip-validate-spec (CLI). | Error count: 1, Warning count: 0 Errors: -Unable to load RELATIVE ref: ./apidocs.oas2.yml path: /local

    at org.openapitools.codegen.config.CodegenConfigurator.toContext(CodegenConfigurator.java:546)
    at org.openapitools.codegen.config.CodegenConfigurator.toClientOptInput(CodegenConfigurator.java:573)
    at org.openapitools.codegen.cmd.Generate.execute(Generate.java:433)
    at org.openapitools.codegen.cmd.OpenApiGeneratorCommand.run(OpenApiGeneratorCommand.java:32)
    at org.openapitools.codegen.OpenAPIGenerator.main(OpenAPIGenerator.java:66)
John15213 commented 3 years ago

So this seems to work (in YAML) if I replace

  parameters:
    - $ref: ''./apidocs.oas2.yml#/parameters/auth-bearer'

with

  parameters:
    - $ref: '#/parameters/auth-bearer'

on line 3284