Skip to content

Enum not generated #30

@udalrich

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

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