You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use the OpenAPI schema to mock the Plaid API and generate responses for property-based testing. With some string fields (like account_id, item_id, and access_token) we had to add the patterns ourselves since any utf8 strings, including empty ones, are conformant to the definition and we didn't want to use up the testing time on unrealistic cases. Would it be possible to add patterns like [a-zA-Z0-9]{37}, access-(?:sandbox|development|production)-{insert uuid4 regex}, etc. for fields where possible? This would also help us know exactly what kind of output to expect from the API and when those outputs change format so that we can validate inputs more strictly and perform optimizations like adjusting string column lengths in our database.
The text was updated successfully, but these errors were encountered:
I'll add this to the backlog. Note that we'd probably only want to do this for patterns that we are 100% sure will never change -- we've had issues where being overly prescriptive adds that enforcement to generated client libraries, which is not a thing we want to do because people are forced to upgrade their clibs to use the changed API
We use the OpenAPI schema to mock the Plaid API and generate responses for property-based testing. With some string fields (like
account_id
,item_id
, andaccess_token
) we had to add the patterns ourselves since any utf8 strings, including empty ones, are conformant to the definition and we didn't want to use up the testing time on unrealistic cases. Would it be possible to add patterns like[a-zA-Z0-9]{37}
,access-(?:sandbox|development|production)-{insert uuid4 regex}
, etc. for fields where possible? This would also help us know exactly what kind of output to expect from the API and when those outputs change format so that we can validate inputs more strictly and perform optimizations like adjusting string column lengths in our database.The text was updated successfully, but these errors were encountered: