Testing JSON Schema Encoding

What's the suggested way to test the encoding part of a Schema.parseJson? Using assert.strictEqual(Schema.encode(mySchema)(data), JSON.stringify([{...}]) fails because of some properties ordered differently.

For context: I have a Schema.TaggedRequest and then I use .fields to create a Schema.parseJson to make a batched request
Was this page helpful?