When the properties missingHeaders and validationErrors has values, they are objects (eg. https://www.vg.no/):
"missingHeaders": {
"Referrer-Policy": {
"missing": "<a href=\"https://scotthelme.co.uk/a-new-security-header-referrer-policy/\" target=\"_blank\">Referrer Policy</a> is a new header that allows a site to control how much information the browser includes with navigations away from a document and should be set by all sites.",
"key": "Referrer-Policy"
}
},
"validationErrors": {
"Permissions-Policy": "We didn't detect a viable policy."
},
However, when a site is not missing any headers or has any validation errors, missingHeaders and validationErrors are empty arrays and not objects (eg. https://www.parker.com/):
"missingHeaders": [],
"validationErrors": [],
This makes it really hard and inconvenient to deserialize the response. Is this a bug, or am I missing something?
When the properties
missingHeaders
andvalidationErrors
has values, they are objects (eg. https://www.vg.no/):However, when a site is not missing any headers or has any validation errors,
missingHeaders
andvalidationErrors
are empty arrays and not objects (eg. https://www.parker.com/):This makes it really hard and inconvenient to deserialize the response. Is this a bug, or am I missing something?