Skip to content

Enum not generated #30

Description

@udalrich

https://github.com/Cosium/json-schema-to-java-record#json-enum indicates that a non-null enum field should generate an enum. However, I have in a deeply nested field, something like this

 "fieldThatShouldBeEnum": {
    "$id": "https://example.com/FieldThatShouldBeAnEnum-1",
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "description": "A field that should be an enum",
    "enum": [
        "FOO",
        "BAR"
     ]
  }                                                

fieldThatShouldBeAnEnum is generated as a String

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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