Package-level declarations
Types
Link copied to clipboard
Immutable provider for generating default invalid values for tests.
Link copied to clipboard
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
fun SchemaExampleValueGenerator.extractExpectedResponseExample(context: TestGenerationContext, statusCode: Int): Any?
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.