All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala-play-server.app.transformParamValues.mustache Maven / Gradle / Ivy

{{^isFile}}
{{#collectionFormat}}
{{^isCollectionFormatMulti}}
.map(values => splitCollectionParam(values, "{{collectionFormat}}"))
{{/isCollectionFormatMulti}}
{{#isCollectionFormatMulti}}
.map(_.toList)
{{/isCollectionFormatMulti}}
{{#items}}
{{^isString}}
.map(_.map(value => {{>convertParam}})
{{/isString}}
{{/items}}
{{/collectionFormat}}
{{^collectionFormat}}
{{^isString}}
.map(value => {{>convertParam}})
{{/isString}}
{{/collectionFormat}}
{{/isFile}}
{{#required}}
.getOrElse {
  {{#generateCustomExceptions}}
  throw new OpenApiExceptions.MissingRequiredParameterException("{{baseName}}", "{{#isHeaderParam}}header{{/isHeaderParam}}{{#isQueryParam}}query string{{/isQueryParam}}{{#isFormParam}}form{{/isFormParam}}")
  {{/generateCustomExceptions}}
  {{^generateCustomExceptions}}
  throw new IllegalArgumentException("Missing {{#isHeaderParam}}header{{/isHeaderParam}}{{#isQueryParam}}query string{{/isQueryParam}}{{#isFormParam}}form{{/isFormParam}} parameter `{{baseName}}`.")
  {{/generateCustomExceptions}}
}
{{/required}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy