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".

    Default

    true
    
  • name: string

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

    Default

    'latest'
    

Generated using TypeDoc