RouteParameterManifest

class RouteParameterManifest @InternalWowApi constructor(val name: String, val location: RouteParameterManifest.Location, val schema: Map<String, Any?>, val required: Boolean = location == Location.PATH)

A parameter of a ServiceRouteManifest: a variable of its path or a query parameter (location), its schema an inline JSON Schema of a scalar ({"type":"string"}, an enum), and whether a call must give it (required; a path variable always is).

Fields may be added: pass the constructor's arguments by name.

Constructors

Link copied to clipboard
constructor(name: String, location: RouteParameterManifest.Location, schema: Map<String, Any?>, required: Boolean = location == Location.PATH)

Types

Link copied to clipboard

Where a parameter is read from.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun RouteParameterManifest.copyWith(name: String = this.name, location: RouteParameterManifest.Location = this.location, schema: Map<String, Any?> = this.schema, required: Boolean = this.required): RouteParameterManifest
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String