Skip to content

topenapi 0.2.0

Latest

Choose a tag to compare

@jerily jerily released this 05 Nov 09:58
83e2f77

Add typed Tcl variable binding:

$validator bind $request {
    user_id {params id}
    page    {query page}
    email   {body user email}
}
  • Validate, convert schema values, and select fields before assigning local variables.
  • Bind nested objects, arrays, form fields, and upload metadata without copying upload contents.
  • Parse JSON bodies once and expose the prepared values through the new topenapi_prepare_request C API.
  • Preserve Tcl stubs support for shared builds and static embedding on Tcl 8.6 and Tcl 9.

The README documents missing fields, nulls, schema unions, and Tcl write-trace behavior. A runnable binding example and additional C and Tcl tests are included.