Skip to content

Ansible Meta Schema issue #4660

@zx80

Description

@zx80
Summary

The Ansible Meta JSON Schema has some issues which means that unintended json are accepted which should be rejected.

Issue Type
  • Bug Report
Description
  1. On line 485 else must move in one of the [] item above, otherwise without if it is simply ignored:

         }
       ],
       "else": {
         "$comment": "If standalone is false, then we have a collection role and only description is required",
         "required": ["description"]
       },
  2. On line 1546 additionalProperties must be moved out of properties, as it is not an intended optional property name for the object:

       "properties": {
         "additionalProperties": false,
         " allow_duplicates": {
  3. The semantics of the not required on line 470 is very strange. It seems to mean these properties must not appear together, but any subset is fine, which does not seem to make sense.

  4. if on line 443 and 461 should probably add a required on the standalone keyword. As it is written, both conditions matches if standalone is not there.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions