Type Alias VersionValidatorLatestOptions

VersionValidatorLatestOptions: {
    allow: boolean;
    name: string;
}

The options for how the middleware should behave if the requested version is latest.

Type declaration

  • allow: boolean

    Whether or not the middleware should validate the "latest version".

    true
    
  • name: string

    The name of the "latest version". Basically, req.params.version must match with this property in order to be consider "latest".

    'latest'