Skip to content

dependencies property should not be an Array but Object #119

@chriskessel

Description

@chriskessel

The generated schema for my object creates this:

  "type": "object",
  "id": "urn:jsonschema:com:kessel:MyResponseObject",
  "dependencies": [],
  "patternProperties": {},
  ...

If I run that through the schema validator, it complains that dependencies should be an object, not an array. Looking at the v3 and v4 specs, they do call out this field as an object.

This is a bug in the schema generator? Or is there a spec addendum that I missed?

(A customer pointed out that our schema had this error and we use Jackson JsonSchema 2.7.0 to generate the schema).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions