Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some fields are sometimes arrays, sometimes hashes #23

Open
rangerscience opened this issue Feb 23, 2017 · 1 comment
Open

Some fields are sometimes arrays, sometimes hashes #23

rangerscience opened this issue Feb 23, 2017 · 1 comment

Comments

@rangerscience
Copy link

rangerscience commented Feb 23, 2017

Among other locations, when retrieving a document, you can have these structures:

"pages"=>
 {"page"=>
   [{"page_number"=>"1", "original_template_guid"=>"redacted", "original_template_filename"=>"redacted.pdf"},
    {"page_number"=>"2", "original_template_guid"=>"redacted", "original_template_filename"=>"redacted.pdf"}]},

"pages"=>
 {"page"=>
   {"page_number"=>"1", "original_template_guid"=>"redacted", "original_template_filename"=>"redacted.pdf"}},

Same for audit_trails, and probably other locations.

This is clearly an artifact from XML conversions, but holy fuck, it is a pain when your schema can be so weirdly different.

@mwean
Copy link

mwean commented Jun 19, 2018

We just ran into a production incident because of this. It's very problematic to have inconsistent responses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants