Skip to content
#

decoder

Here are 599 public repositories matching this topic...

jasonvmiller
jasonvmiller commented Feb 25, 2020

Given that PASETO is designed for "Resistance to Implementation Error / Misuse", I'm surprised the examples don't cover calling JSONToken.Validate, nor does JSONToken.UnmarshalJSON do this on it's own.

The documentation does indicate that the standard claims are optional, which would mean that calling the default set of validation functions during JSONToken.Unmarshal might break the curre

timothee-haudebourg
timothee-haudebourg commented Mar 17, 2020

The documentation is not clear about the order in which the entries of a JSON object will be iterated through the JsonValue::entries method. Is it a lexicographic order? Order of definition in the original string?

Issue #68 is letting me think there was some kind of defined order between keys in an older version of the crate, but is now the order of definition.

jnury
jnury commented Jan 22, 2020

What I did: json.Marshal(envelope)

What I expected: convert an Envelope object into Json

What I got: a stack overflow when envelope contains at least one part

Release or branch I am using: master

Please find attached a file to reproduce. As I understand the problem, there is an infinite loop while walking the Envelope object as we can go to Envelope.Root.FirstChild.Parent.FirstChild.Pa

Improve this page

Add a description, image, and links to the decoder topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the decoder topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.