planningcenter / developers

Planning Center API docs and support
https://developer.planning.center/docs/
85 stars 8 forks source link

Null values #1173

Closed philfbcnz closed 5 months ago

philfbcnz commented 5 months ago

Related Product Which product is this question related to? People API

Describe the question Power Automate does not handle null values very well. When trying to parse JSON data I get a whole lot of the following errors.... "Invalid type. Expected Object but got Null.", "Invalid type. Expected String but got Null.",

So in the schema I need to add the following lines for each value...

      "anyOf": [
        { "type": "string" },
        { "type": "null" }
      ]

Are you able to please tell me, what values I need to configure to handle both string or null, integer or null and object or null in the person object (https://api.planningcenteronline.com/people/v2/people) please?

What have you tried that worked?

What have you tried that didn't work?

Additional context

I have..

gjack commented 5 months ago

I'm sorry, but I'm not familiar with this product, and I don't think we have anyone on staff who is. Perhaps you could review their documentation or contact one of their support members for more information on how to solve your problem. I'm sorry I can't be of more help!

seven1m commented 5 months ago

I just wanted to add that we don't have a document that lists which attributes can be null either. Sorry about that! I think it would be safest to just assume any attribute can be null.