Boost C++ Libraries

PrevUpHomeNext

Struct param_info

boost::taar::param_info — Describes one parameter for schema generation (OpenAPI, MCP inputSchema).

Synopsis

// In header: <boost/taar/core/json_schema.hpp>


struct param_info {

  // public data members
  std::string name;
  std::string description;
  std::string json_type;  // JSON Schema type name, empty for "any". 
  bool required;
  boost::json::object schema;  // Full JSON Schema for the parameter type. 
  std::optional< boost::json::value > default_value;  // From with_default, when representable. 
};

Description

Built at registration time from a callable's parameter type and the argument provider that feeds it.


PrevUpHomeNext