Forum Discussion

moanrose's avatar
moanrose
New Contributor
6 years ago
Solved

Swagger Tools does not allow Schemas with non ASCII characters even if URI-encoded

According to the open api specification on $ref https://swagger.io/specification/#referenceObject -  a Schema should honor the URI format defined https://tools.ietf.org/html/rfc3986#section-4.1 - and...
  • RonRatovsky's avatar
    RonRatovsky
    6 years ago

    While there may still be an issue with the reference resolution, your definition is invalid for another reason. The name you've given the schema doesn't conform with the restrictions in the spec.

     

    From https://swagger.io/specification/#componentsObject:

    All the fixed fields declared above are objects that MUST use keys that match the regular expression: ^[a-zA-Z0-9\.\-_]+$.