Skip to content

Removing dependencies? #442

Closed
Closed
@epoberezkin

Description

@epoberezkin

@handrews could you please point me to the discussion about adding the note about the possibility of removing dependencies?

If it wasn't discussed, I would propose to remove this note from the spec until such possibility is agreed.

Without "dependencies", a concise schema:

{
  "dependencies": {
    "foo": ["bar"],
    "baz": ["quux"]
  }
}

will have to be replaced with:

{
  "allOf": [
    {
      "if": {"required": ["foo"]},
      "then": {"required": ["bar"]},
    },
    {
      "if": {"required": ["baz"]},
      "then": {"required": ["quux"]},
    }
  ]
}

which seems both more verbose and more difficult to understand.

So I am not sure what could be the motivation to remove it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions