Documentation
¶
Overview ¶
Package synthx generates a realistic request body for a documented operation.
It exists because synth has two front doors that do not agree. Its OpenAPI one decides a field's kind from `format` alone, so every plain `type: string` property becomes lorem ipsum no matter what it is called, and a login body comes back as {"password": "eiusmod sed do", "phone_number": "do adipiscing"}. Its JSON Schema front door reads the field *name* first (synth's own infer.Kind knows "password", "phone_number", "timezone"), which is the only signal those fields have. So this package resolves the operation's request body out of the document, emits it as a plain JSON Schema, and generates from that — same library, the front door that reads names.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSONSchema ¶
JSONSchema renders the operation's request body as a standalone JSON Schema: $refs resolved against the document's components, so nothing is left pointing at a definition the generator cannot see.
Types ¶
This section is empty.