proofgeist / generator

Generator - Store, explore, share and create FileMaker Code
MIT License
35 stars 8 forks source link

Work Around for order dependent API #9

Closed toddgeist closed 7 years ago

toddgeist commented 7 years ago

Some older APIs still use XML under the hood. They problem is that XML validators are sensitive to element order. JSON explicitly forbids this.

The problem is that Generators use of an intermediate JSON format causes the order of properties in the JSON to change, which will cause these validators to fail.

AuthorizeNet is an example of one such API

https://community.developer.authorize.net/t5/Integration-and-Testing/JSON-API-warning-properties-are-order-dependent/m-p/55519#M30389