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

GET returns all strings. #11

Closed
sdj38 opened this issue Jan 30, 2018 · 1 comment
Closed

GET returns all strings. #11

sdj38 opened this issue Jan 30, 2018 · 1 comment

Comments

@sdj38
Copy link

sdj38 commented Jan 30, 2018

Hi Olof,

Thanks for the previous fix it is working as expected.
After doing some more tests and broadening my configurations I noticed that all GET requests return everything as a type string. For example
{
"action": "deny",
"src-last-port": "443", // parsed as type string instead of number -> should be "src-last-port" : 443,
"dst-last-port": "443",
"protocol": "tcp"
}

They should return data based on the YANG type. (string, number, boolean);
Expected value

  • Type - String:
    { "string" : "name" }

  • Type - Number (uint16,uint32...)
    { "number" : 400 }

  • Type - boolean
    { "boolean" : false }

@olofhagsand
Copy link
Member

Thanks for detecting this.
Fixed by 2bbf0b8 in develop

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