The above returns an error for both stripe:clientSecret and stripe:publishableKey which reads "A definition for this extension property was found, but it has not been included in the correct object type. Please check the spelling of this property and ensure that you are using it within the correct object "@type".
This error is incorrect, as the properties are explicitly defined on the type in the extension.
Extension types are not being validated correctly in cases where the model implies only one type should be used for a property.
For example, this response:
With this defined extension:
The above returns an error for both
stripe:clientSecret
andstripe:publishableKey
which reads"A definition for this extension property was found, but it has not been included in the correct object type. Please check the spelling of this property and ensure that you are using it within the correct object "@type".
This error is incorrect, as the properties are explicitly defined on the type in the extension.