Skip to content

[DDI 4] - JSON Schema - type self-references #78

@duffgui

Description

@duffgui

Hi,

We generated several years ago a Java model from the 3.2 schema, then from the 3.3 schema. We have been trying to do the same from the DDI 4 JSON Schema and have hit a roadblock. Indeed, there are nested and recursive references: for example, LocationValueTypes that points to other LocationValueTypes, which themselves point to LocationValueTypes, etc. Therefore, during the generation process in Java, a StackOverflowException is raised.

We wonder whether or not these nested and recursive self-references are intentional:

  • If not, can the schema be updated?
  • If so, do you have some recommendations to prevent the StackOverflowException to occur?

Thank you very much for your assistance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions