facebook-business-sdk-codegen icon indicating copy to clipboard operation
facebook-business-sdk-codegen copied to clipboard

Feature Request: Add missing types for nested Objects (such as Ads/insights/filtering)

Open bsless opened this issue 3 years ago • 0 comments

Checklist

  • [X] I've updated to the latest released version
  • [X] I've searched for existing feature requests on GitHub issues
  • [X] I've read the Code of Conduct
  • [X] I've given my issue the title: Feature Request: [name of my feature request]

Goals

Be able to fully validate and describe the API, align to official references documentation

Expected Results

I expect a field like filtering to contain list<FilterObject> or list<AdRuleFilter> and not list<Object>

Code Samples & Details

FilterObject:

{
    "apis": [],
    "fields": [
        {
            "name": "field",
            "type": "string"
        },
        {
            "name": "operator",
            "type": "Filters_operator"
        },
        {
            "name": "value",
            "type": "Object"
        }
    ]
}

Ads/insights/filtering:

                {
                    "name": "filtering",
                    "required": false,
                    "type": "list<FilterObject>"
                },

Thanks

bsless avatar Mar 23 '22 15:03 bsless