Title: Schema validation error when installing in subdirectory
Last modified: February 18, 2020

---

# Schema validation error when installing in subdirectory

 *  Resolved [Gerald](https://wordpress.org/support/users/gerital/)
 * (@gerital)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/schema-validation-error-when-installing-in-subdirectory/)
 * When running WordPress in a subdirectory, like [/dev](https://tracesmap.org/dev/rest-api/docs/)
   in my case, swagger schema validator shows the following error:
 * `"ECMA 262 regex \"^[^{}/ :\\\\]+(?::\\d+)?$\" does not match input string \"
   tracesmap.org/dev\""`
 * The name of the subdirectory appears in _host_:
 *     ```
       "host": "tracesmap.org/dev",
       "basePath": "/wp-json",
       ```
   
 * Probably it should be moved to _basePath_ instead?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fschema-validation-error-when-installing-in-subdirectory%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [agussuroyo](https://wordpress.org/support/users/agussuroyo/)
 * (@agussuroyo)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/schema-validation-error-when-installing-in-subdirectory/#post-13014685)
 * Hi [@gerital](https://wordpress.org/support/users/gerital/)
 * Thanks for updating me about this, you can update your plugin to the latest version
   to fix this issue
 * Thanks

Viewing 1 replies (of 1 total)

The topic ‘Schema validation error when installing in subdirectory’ is closed to
new replies.

 * ![](https://ps.w.org/wp-api-swaggerui/assets/icon-256-256.png?rev=2129970)
 * [WP API SwaggerUI](https://wordpress.org/plugins/wp-api-swaggerui/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-api-swaggerui/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-api-swaggerui/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-api-swaggerui/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-api-swaggerui/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [agussuroyo](https://wordpress.org/support/users/agussuroyo/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/schema-validation-error-when-installing-in-subdirectory/#post-13014685)
 * Status: resolved