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

Incorrect usage of "city" field in UEI example JSON context #17

Open
rajaneeshk90 opened this issue Feb 12, 2024 · 0 comments
Open

Incorrect usage of "city" field in UEI example JSON context #17

rajaneeshk90 opened this issue Feb 12, 2024 · 0 comments

Comments

@rajaneeshk90
Copy link
Collaborator

rajaneeshk90 commented Feb 12, 2024

Issue Details:

Problem Statement:

All the json examples in UEI repo are using the city field inside the context incorrectly.

The "city" field should be inside the "context.location" object but instead city is placed in the "context" directly.

One incorrect use can be found on the UEI github repository:
https://github.com/beckn/Unified-Energy-Interface/blob/main/examples/ev-charging/search/search-request.json#L11

example:

`"context": {
    "domain": "dent:0.1.0",
    "action": "search",
    "location": {
      "country": {
        "name": "India",
        "code": "IND"
      }
    },
    "city": "std:080",
    "version": "1.1.0",
    "bap_id": "example-bap.com",
    "bap_uri": "https://api.example-bap.com/pilot/bap/energy/v1",
    "transaction_id": "6743e9e2-4fb5-487c-92b7-13ba8018f176",
    "message_id": "6743e9e2-4fb5-487c-92b7-13ba8018f176",
    "timestamp": "2023-07-16T04:41:16Z"
  }`

It is essential to investigate the incorrect use of city field in the context object and rectify it.

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

1 participant