# Auth0 swagger files are not valid according to the Swagger 1.2 specification

**URL:** <https://community.auth0.com/t/auth0-swagger-files-are-not-valid-according-to-the-swagger-1-2-specification/11466>\
**Category:** Get Help\
**Tags:** swagger\
**Created:** [May 9, 2018, 4:19pm UTC](https://community.auth0.com/t/auth0-swagger-files-are-not-valid-according-to-the-swagger-1-2-specification/11466 "2018-05-09T16:19:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![yngndrw-sage](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@yngndrw-sage](https://community.auth0.com/u/yngndrw-sage)\
**Post date:** [May 9, 2018, 4:19pm UTC](https://community.auth0.com/t/auth0-swagger-files-are-not-valid-according-to-the-swagger-1-2-specification/11466/1 "2018-05-09T16:19:02Z")

</div>

The Swagger files which Auth0 provides in order to document the management APIs are written in Swagger v1.2, but do not conform to the Swagger specification.

In particular the [Users Swagger file](https://auth0.eu.auth0.com/api/v2/api-docs/Users) contains a nickname (“_delete_{provider}_by\_user\_id_” for the “_Unlink a user identity_” operation) which has special characters. The [Swagger 1.2 specification](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/1.2.md#user-content-operationNickname) states:

> **Required.** A unique id for the operation that can be used by tools reading the output for further and easier manipulation. For example, Swagger-Codegen will use the nickname as the method name of the operation in the client it generates. The value MUST be **alphanumeric** and may include **underscores**. Whitespace characters are not allowed.

---

<div class="post-metadata">

**Author:** ![patrick.malouin](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@patrick.malouin](https://community.auth0.com/u/patrick.malouin)\
**Post date:** [May 9, 2018, 7:28pm UTC](https://community.auth0.com/t/auth0-swagger-files-are-not-valid-according-to-the-swagger-1-2-specification/11466/2 "2018-05-09T19:28:37Z")

</div>

Thanks for reporting this!  
I’ve been able to reproduce this problem and our engineers are working on a fix.

---

<div class="post-metadata">

**Author:** ![yngndrw-sage](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@yngndrw-sage](https://community.auth0.com/u/yngndrw-sage)\
**Post date:** [May 10, 2018, 9:09am UTC](https://community.auth0.com/t/auth0-swagger-files-are-not-valid-according-to-the-swagger-1-2-specification/11466/3 "2018-05-10T09:09:44Z")

</div>

No problem.

The braces are also used in some of the model definitions, such as “delete\_{provider}\_by\_user\_id\_response”. This does **not** appear to be against the specification (Which doesn’t seem to specify any rules for model keys / references), however it does affect some code generation tooling so please consider changing these as well.

---

<div class="post-metadata">

**Author:** ![patrick.malouin](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@patrick.malouin](https://community.auth0.com/u/patrick.malouin)\
**Post date:** [May 10, 2018, 12:27pm UTC](https://community.auth0.com/t/auth0-swagger-files-are-not-valid-according-to-the-swagger-1-2-specification/11466/4 "2018-05-10T12:27:51Z")

</div>

Yes, the fix will include other related attributes.

To give you a heads up, they will have the new values `delete_user_identity_by_user_id` and `delete_user_identity_by_user_id_response`.

---

<div class="post-metadata">

**Author:** ![yngndrw-sage](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@yngndrw-sage](https://community.auth0.com/u/yngndrw-sage)\
**Post date:** [May 10, 2018, 12:39pm UTC](https://community.auth0.com/t/auth0-swagger-files-are-not-valid-according-to-the-swagger-1-2-specification/11466/5 "2018-05-10T12:39:39Z")

</div>

Excellent, that sounds great Patrick.

Thank you very much for the speedy response.

---

<div class="post-metadata">

**Author:** ![glenn.davies](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/glenn.davies/32/13570_2.png) [@glenn.davies](https://community.auth0.com/u/glenn.davies)\
**Post date:** [July 31, 2018, 5:08pm UTC](https://community.auth0.com/t/auth0-swagger-files-are-not-valid-according-to-the-swagger-1-2-specification/11466/6 "2018-07-31T17:08:41Z")

</div>

Hi. Has this fix made it to preview or production yet?

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 17, 2018, 10:44am UTC](https://community.auth0.com/t/auth0-swagger-files-are-not-valid-according-to-the-swagger-1-2-specification/11466/7 "2018-12-17T10:44:06Z")

</div>


