FREE TOOLS
OpenAPI Request Example Generator
Create an inert request specimen for a selected supported OpenAPI operation.
OpenAPI document JSON, Path template, Method, Server index
openapi-request-example-generator.json (complete report)
Browser only
Runs locally in your browser. Your files, pasted content and generated output are not uploaded. Reset clears this tool’s working data.
This tool needs JavaScript. If it does not load, refresh the page and try again.
How to use this tool
- Enter values using the examples, or choose a local file where requested. Follow the displayed supported input shapes and limits.
- Choose Calculate result and inspect the complete result.
- Download result to save the primary file. Where supplied, additional links save source files and the full JSON report. Reset restores examples and clears output.
Examples
OpenAPI document JSON: {
"openapi": "3.1.1",
"info": {
"title": "Demo",
"version": "1"
},
"servers": [
{
"url": "https://example.com/api"
}
],
"paths": {
"/pets": {
"post": {
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"default": "Ada"
}
},
"required": [
"name"
]
}
}
}
},
"responses": {
"201": {
"description": "Created"
}
}
}
}
}
}
Path template: /pets
Method: post
Server index: 0
Limitations
- Inert OpenAPI3.0.x/3.1.x selected-operation specimen. Use absolute HTTP(S) server defaults/variables with operation/path overrides and one join slash. Required parameters plus explicit optional examples/defaults/const;first named example;validated nonempty fallback string a when otherwise unconstrained. Path simple/label/matrix and query form/deepObject/explicit nonexploded space/pipe arrays support flat primitive data;headers need unreserved ASCII atoms,cookies scalar form. Encode URI data once,refuse collisions/dot segments. JSON body uses application/json when declared;body is a JSON value to serialize. Reuse existing finite explicit-type schema sampler for const/enum,required objects,uniform arrays,inclusive ranges/counts and examples/defaults. Format is annotation;auth/security is not synthesized. Refuse recursive schemas,unions/boolean schemas,nullable/readOnly branches,exclusive/pattern/other unsupported constraints,parameter content,GET/HEAD bodies,external refs/examples and ambiguous serialization. No request,full schema or interoperability claim. At most200 merged parameters/10000 expanded schema nodes/30 levels/1MiB sample values/65536 URL characters/8192 header characters;existing sample/ref/shared input/output limits apply.
- Text fields are limited to100,000 UTF16 units each and400,000 combined UTF8 bytes; file fields have their own displayed limits. Combined output is at most4MiB. Processing stops after30 seconds; tool-specific bounds may be tighter.
- Generated source is a downloadable result and is not executed here. Inspection does not establish remote behavior, trust or standards certification.