---
name: "Swagger2::Guides::CustomPlaceholder"
section: "3pm"
platform: "linux"
package: "libswagger2-perl"
version: "0.77-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/Swagger2::Guides::CustomPlaceholder"
---

# Swagger2::Guides::CustomPlaceholder(3pm)

Custom placeholders

## NAME

Swagger2::Guides::CustomPlaceholder - Custom placeholders

### OVERVIEW

The default placeholder type is the standard placeholder \<https://metacpan.org/pod/distribution/Mojolicious/lib/Mojolicious/Guides/Routing.pod#Standard-placeholders\>, meaning ":". This can be customized using `"x-mojo-placeholder"` in the API specification. The example in "SYNOPSIS" will enforce a relaxed placeholder \<https://metacpan.org/pod/distribution/Mojolicious/lib/Mojolicious/Guides/Routing.pod#Relaxed-placeholders\>.

## SYNOPSIS

```
  {
    "swagger": "2.0",
    "basePath": "/api",
    "paths": {
      "/pets/{name}": {
        "get": {
          "operationId": "listPets",
          "parameters": [
            { "name": "name", "in": "path", "type": "string", "x-mojo-placeholder": "#" }
          ],
          "responses": {
            "200": { ... }
          }
        }
      }
    }
  }
```

## AUTHOR

Jan Henning Thorsen - `"jhthorsen@cpan.org"`
