Issue with Server Object Variables

Issue #276 resolved
Former user created an issue

Having the default value of a server Object as an empty string throws the null pointer exception. An empty string is still a string so I don’t think it violates the OpenAPI spec: https://github.com/OAI/OpenAPI-Specification/blob/3.0.3/schemas/v3.0/schema.json#L178

servers: 
  url: https://hostexample{stage}.companyName{region}.{tld}{basePath} 
  variables: 
    stage: 
      default: sandbox 
    region: 
      default: ''

Comments (3)

  1. Log in to comment