mirror of
https://github.com/tristanpenman/valijson.git
synced 2025-03-03 12:58:03 +01:00
Remove unwanted arguments from publicly accessible populateSchema function
This commit is contained in:
parent
00686e26f0
commit
79267593f3
@ -68,21 +68,15 @@ public:
|
||||
* @param node Reference to node to parse
|
||||
* @param schema Reference to Schema to populate
|
||||
* @param fetchDoc Function to fetch remote JSON documents (optional)
|
||||
* @param parentSchema Optional pointer to the parent schema, used to
|
||||
* support required keyword in Draft 3.
|
||||
* @param ownName Optional pointer to a node name, used to support
|
||||
* the 'required' keyword in Draft 3.
|
||||
*/
|
||||
template<typename AdapterType>
|
||||
void populateSchema(
|
||||
const AdapterType &node,
|
||||
Schema &schema,
|
||||
boost::optional<typename FetchDocumentFunction<AdapterType>::Type>
|
||||
fetchDoc = boost::none,
|
||||
Schema *parentSchema = NULL,
|
||||
const std::string *ownName = NULL)
|
||||
fetchDoc = boost::none)
|
||||
{
|
||||
populateSchema(node, node, schema, fetchDoc, parentSchema, ownName);
|
||||
populateSchema(node, node, schema, boost::none, fetchDoc, NULL, NULL);
|
||||
}
|
||||
|
||||
private:
|
||||
|
Loading…
x
Reference in New Issue
Block a user