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

Enum datatype representation is missing in the spec. #3

Open
Fak3 opened this issue Jan 13, 2020 · 4 comments
Open

Enum datatype representation is missing in the spec. #3

Fak3 opened this issue Jan 13, 2020 · 4 comments

Comments

@Fak3
Copy link

Fak3 commented Jan 13, 2020

Current spec does not say anything about representing Enums in the interchange json. Current plugin implementation outputs this for a enum into the json file:

    "TransportEventType_Code": {
        "name": "TransportEventType_Code",
        "type": "Enum",
        "isAbstract": false,
        "description": "",
        "Property": [],
        "Enum": [
            {
                "name": "Call",
                "description": "",
                "tags": []
            },
            {
                "name": "Arrival",
                "description": "",
                "tags": []
            },
            {
                "name": "Departure",
                "description": "",
                "tags": []
            },
            {
                "name": "Loading",
                "description": "",
                "tags": []
            },
            {
                "name": "UnLoading",
                "description": "",
                "tags": []
            },
            {
                "name": "BorderCrossing",
                "description": "",
                "tags": []
            },
            {
                "name": "TransShipment",
                "description": "",
                "tags": []
            },
            {
                "name": "Stop",
                "description": "",
                "tags": []
            }
        ]
    },
@faizanvahevaria
Copy link

Hello @Fak3 ,
Can you please elaborate. I did not understand what you mean to say though i have followed following test for the file

  1. exported json ( Tools -> model-interchange -> export)
  2. make changes in Enumeration 'TransportEventType_Code' literals
  3. reimport exported json file
    then, changes reflacted...
    So, Please let me know if there is any misunderstanding

@Fak3
Copy link
Author

Fak3 commented Jan 16, 2020

It is not about plugin, but rather about the missing documentation at edi3.org website

@faizanvahevaria
Copy link

Ok. So this is not for me right?

@Fak3
Copy link
Author

Fak3 commented Jan 27, 2020

right

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