@har-sdk/openapi-sampler
Version:
[](https://codeclimate.com/github/NeuraLegion/har-sdk/maintainability) [ • 495 B
TypeScript
import { Sampler, OpenAPISchema } from './Sampler';
export declare class StringSampler implements Sampler {
private readonly MAX_PATTERN_SAMPLE_LENGTH;
private readonly stringFormats;
sample(schema: OpenAPISchema): any;
private patternSample;
private hasInfiniteQuantifier;
private sampleWithMaxLength;
private sampleWithMinLength;
private checkLength;
private assertLength;
private checkBoundary;
private adjustLength;
private adjustMaxLength;
}