#include <MRMcp/MRMcp.h>
Public Member Functions | |
| Object () | |
| Object & | addMember (std::string name, Base schema) & |
| Add required member. Returns a reference to *this. | |
| Object & | addMemberOpt (std::string name, Base schema) & |
| Add optional member. Returns a reference to *this. | |
| Object && | addMember (std::string name, Base schema) && |
| Add required member. Returns a reference to *this. | |
| Object && | addMemberOpt (std::string name, Base schema) && |
| Add optional member. Returns a reference to *this. | |
| Public Member Functions inherited from MR::Mcp::Schema::Base | |
| const nlohmann::json & | asJson () const & |
| nlohmann::json && | asJson () && |
Additional Inherited Members | |
| Protected Member Functions inherited from MR::Mcp::Schema::Base | |
| Base (nlohmann::json json) | |
| Protected Attributes inherited from MR::Mcp::Schema::Base | |
| nlohmann::json | json |
A schema describing an object. Construct like this: Object{}.addMember(...).addMember(...).
|
inline |
Add required member. Returns a reference to *this.
Add required member. Returns a reference to *this.
Add optional member. Returns a reference to *this.
|
inlinenodiscard |
Add optional member. Returns a reference to *this.