Features of openapi-sampler
mainThe openapi-sampler tool provides several advanced features for generating deterministic OpenAPI samples:
- Deterministic Output: Given the same input, it always produces the same output.
- Compound Keyword Support: Supports
allOf,oneOf,anyOf, andif/then/else. - Property Handling: Supports
additionalPropertieswith thex-additionalPropertiesNameextension. - Value Prioritization: Uses
const,examples,enum, anddefaultin that specific order of precedence. - Array Support: Supports
contains,minItems,maxItems, and tuples (usingitemsas an array). - Constraint Support: Supports
minLength,maxLength,min,max,exclusiveMinimum,exclusiveMaximum, andpattern(regex). - String Formats: Supports a wide range of formats including
email,password,date-time,ipv4,uuid,uri, and more. - Schema Resolution: Supports
$refresolving when the full specification is provided.