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

needs.json schema? How are links stored? #1145

Open
arwedus opened this issue Mar 15, 2024 · 1 comment
Open

needs.json schema? How are links stored? #1145

arwedus opened this issue Mar 15, 2024 · 1 comment

Comments

@arwedus
Copy link
Contributor

arwedus commented Mar 15, 2024

Is it currently correct to store custom link options of a need flat, e.g.

                "ACTIVITY_ThisAndThat": {
                    "description": "",
                    "id": "ACTIVITY_ThisAndThat",
                    "implements": [],
                    "has_in_port": ["...", ...],
                    "has_out_port": ["...", ...],
                    "instantiates": ["...", ...]
                 },

or nested below "links", like this:

                "ACTIVITY_ThisAndThat": {
                    "description": "",
                    "id": "ACTIVITY_ThisAndThat",
                    "implements": [],
                    "links": {
                        "has_in_port": "...,...",
                        "has_out_port": "...",
                        "instantiates": "...",
                    },
                }

I could not find anything in the docs. I'm writing a needs.json generator right now, so I needs to know 😆

@danwos
Copy link
Member

danwos commented Mar 19, 2024

The first one is correct, so it's just a "flat" dictionary.

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