Is your feature request related to a problem? Please describe.
Some 3.1 schemas represent enumerations as oneOf consts without type. Current normalization doesn't convert such schemas to enums.
Describe the solution you'd like
During normalization, if a schema with const has no type, it should be inferred from the const value.
Example
# Input (3.1 schema)
oneOf:
- const: "foo"
- const: "bar"
# Expected normalized output
type: string
enum:
- foo
- bar
Is your feature request related to a problem? Please describe.
Some 3.1 schemas represent enumerations as
oneOfconsts withouttype. Current normalization doesn't convert such schemas toenums.Describe the solution you'd like
During normalization, if a schema with
consthas notype, it should be inferred from theconstvalue.Example