Package-level declarations

Types

Link copied to clipboard
class BasicTestDataProvider(overrides: Map<String, String> = emptyMap())

Immutable provider for generating default invalid values for tests.

Link copied to clipboard
class SecurityValueProvider(validSecurityValues: Map<String, String> = emptyMap())

Provides valid security values for API key and authorization schemes.

Link copied to clipboard
class ValidCaseBuilder(path: String, method: String, operation: Operation, openAPI: OpenAPI, securityValueProvider: SecurityValueProvider = SecurityValueProvider(), schemaExampleValueGenerator: SchemaExampleValueGenerator = SchemaExampleValueGeneratorFactory().create())

Builds a valid positive TestCase for a given OpenAPI operation.

Functions

Link copied to clipboard

Extracts expected response example using TestGenerationContext.

Link copied to clipboard
fun <T : Any> tryGetExample(context: TestGenerationContext, schema: Schema<*>, deref: Schema<*>, provide: () -> T): T

Attempts to generate an example value, throwing an exception if it fails.