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

Use operator[] instead of front() in get_x5c_key_value to support jsoncpp #361

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

omar-mohamed-kh
Copy link

Replace front() with [0] in get_x5c_key_value as front is not supported by jsoncpp on array types.

Replace the `front()` with `[0]` as front is not supported by jsoncpp on
array types.

Signed-off-by: Omar Mohamed <[email protected]>
@prince-chrismc
Copy link
Collaborator

Would it be possible to implement the missing function in the trait definition?

Extending,

class array_type : public Json::Value {

Also it seems we are missing this function as a requirement for the json array

struct is_valid_json_array {

@omar-mohamed-kh
Copy link
Author

Is front() the missing function for the second issue, or something else?

@prince-chrismc
Copy link
Collaborator

Yes, front() Should be checked.

Might also be fore checking if the unit tests are missing a case 🤔

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

Successfully merging this pull request may close these issues.

2 participants